twilight_validate::request

Function get_guild_audit_log_limit

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

Ensure that the limit for the Get Guild Audit Log endpoint is correct.

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

ยงErrors

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