Skip to main content

bulk_guild_ban_delete_message_seconds

Function bulk_guild_ban_delete_message_seconds 

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

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

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

ยงErrors

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