twilight_validate::request

Function invite_max_uses

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

Ensure that the invite max uses is correct.

The age must be at most INVITE_USES_MAX. This is based on this documentation entry.

ยงErrors

Returns an error of type InviteMaxUses if the uses is invalid.