Function twilight_validate::command::guild_permissions

source ·
pub const fn guild_permissions(
    count: usize
) -> Result<(), CommandValidationError>
Expand description

Validate the number of guild command permission overwrites.

The maximum number of commands allowed in a guild is defined by GUILD_COMMAND_PERMISSION_LIMIT.

§Errors

Returns an error of type PermissionsCountInvalid if the permissions are invalid.