Function twilight_validate::sticker::tags

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

Ensure that a sticker’s tags is correct.

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

§Errors

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