twilight_validate::request

Function create_guild_ban_delete_message_seconds

Source
pub const fn create_guild_ban_delete_message_seconds(
    seconds: u32,
) -> Result<(), ValidationError>
Expand description

Ensure that the delete message seconds amount for the Create Guild Ban request is correct.

The seconds must be at most CREATE_GUILD_BAN_DELETE_MESSAGE_SECONDS_MAX. This is based on this documentation entry.

ยงErrors

Returns an error of type CreateGuildBanDeleteMessageSeconds if the seconds is invalid.