Function twilight_validate::request::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.