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

Ensure that the limit for the Get Guild Members endpoint is correct.

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

Errors

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