pub fn stickers(stickers: &[Id<StickerMarker>]) -> Result<(), MessageValidationError> {
    let len = stickers.len();

    if len <= STICKER_MAX {
        Ok(())
    } else {
        Err(MessageValidationError {
            kind: MessageValidationErrorType::StickersInvalid { len },
            source: None,
        })
    }
}
/// 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.
///
/// [`StickersInvalid`]: MessageValidationErrorType::StickersInvalid
/// [this documentation entry]: https://discord.com/developers/docs/resources/channel#create-message-jsonform-params
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].
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 ] .
pub fn stickers(stickers: &[Id<StickerMarker>]) -> Result<(), MessageValidationError> {
    let len = stickers.len();
    if len <= STICKER_MAX {
        Ok(())
    } else {
        Err(MessageValidationError {
            kind: MessageValidationErrorType::StickersInvalid { len },
            source: None,
        })
    }
}
pub fn stickers ( stickers : & [ Id < StickerMarker > ] ) -> Result < ( ) , MessageValidationError > { let len = stickers . len ( ) ; if len <= STICKER_MAX { Ok ( ( ) ) } else { Err ( MessageValidationError { kind : MessageValidationErrorType :: StickersInvalid { len } , source : None , } ) } }
Ensure that the amount of stickers in a message is correct.
Ensure that the amount of stickers in a message is correct .
stickers
&[Id<StickerMarker>]
errors
Returns an error of type [`StickersInvalid`] if the length is invalid.


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