Function twilight_validate::sticker::description

source ·
pub fn description(value: impl AsRef<str>) -> Result<(), StickerValidationError>
Expand description

Ensure that a sticker’s description is correct.

The length must be at least STICKER_DESCRIPTION_LENGTH_MIN and at most STICKER_DESCRIPTION_LENGTH_MAX. This is based on this documentation entry.

§Errors

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