twilight_validate::request

Function search_guild_members_limit

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

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

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

ยงErrors

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