Function twilight_validate::message::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.