Function twilight_validate::request::guild_name
source · [−]pub fn guild_name(name: impl AsRef<str>) -> Result<(), ValidationError>Expand description
Ensure that a guild name’s length is correct.
The length must be at least GUILD_NAME_LENGTH_MIN and at most
GUILD_NAME_LENGTH_MAX. This is based on this documentation entry.
Errors
Returns an error of type GuildName if the length is invalid.