Function twilight_validate::request::get_reactions_limit

source ·
pub const fn get_reactions_limit(limit: u16) -> Result<(), ValidationError>
Expand description

Ensure that the limit for the Get Reactions endpoint is correct.

The limit must be at least GET_REACTIONS_LIMIT_MIN and at most GET_REACTIONS_LIMIT_MAX. This is based on this documentation entry.

§Errors

Returns an error of type GetReactions if the limit is invalid.