twilight_validate::request

Function template_description

Source
pub fn template_description(
    description: impl AsRef<str>,
) -> Result<(), ValidationError>
Expand description

Ensure that a guild template’s description length is correct.

The length must be at most TEMPLATE_DESCRIPTION_LENGTH_MAX. This is based on this documentation entry.

§Errors

Returns an error of type TemplateDescription if the length is invalid.