twilight_validate::request

Function guild_prune_days

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

Ensure that the days to prune members from a guild is correct.

The days must be at least GUILD_PRUNE_DAYS_MIN and at most GUILD_PRUNE_DAYS_MAX. This is based on this documentation entry.

ยงErrors

Returns an error of type GuildPruneDays if the days is invalid.