twilight_validate::message

Function sticker_ids

Source
pub fn sticker_ids(
    sticker_ids: &[Id<StickerMarker>],
) -> Result<(), MessageValidationError>
Expand description

Ensure that the amount of stickers in a message is correct.

There must be at most STICKER_MAX stickers. This is based on this documentation entry.

ยงErrors

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