twilight_validate::request

Function invite_max_age

source
pub const fn invite_max_age(max_age: u32) -> Result<(), ValidationError>
Expand description

Ensure that the invite max age is correct.

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

ยงErrors

Returns an error of type InviteMaxAge if the age is invalid.