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