pub enum ValidationErrorType {
Show 37 variants
AuditReason {
len: usize,
},
AutoModerationBlockActionCustomMessageLimit {
len: usize,
},
AutoModerationMetadataMentionTotalLimit {
limit: u8,
},
AutoModerationMetadataKeywordFilter {
len: usize,
},
AutoModerationMetadataKeywordFilterItem {
len: usize,
substring: String,
},
AutoModerationMetadataAllowList {
len: usize,
},
AutoModerationMetadataAllowListItem {
len: usize,
substring: String,
},
AutoModerationMetadataPresetAllowList {
len: usize,
},
AutoModerationMetadataPresetAllowListItem {
len: usize,
substring: String,
},
AutoModerationActionMetadataDurationSeconds {
seconds: u32,
},
AutoModerationMetadataRegexPatterns {
len: usize,
},
AutoModerationMetadataRegexPatternsItem {
len: usize,
substring: String,
},
AutoModerationExemptRoles {
len: usize,
},
AutoModerationExemptChannels {
len: usize,
},
CreateGuildBanDeleteMessageSeconds {
seconds: u32,
},
CommunicationDisabledUntil {
timestamp: Timestamp,
},
GetChannelMessages {
limit: u16,
},
GetCurrentUserGuilds {
limit: u16,
},
GetEntitlements {
limit: u8,
},
GetGuildAuditLog {
limit: u16,
},
GetGuildBans {
limit: u16,
},
GetGuildMembers {
limit: u16,
},
GetReactions {
limit: u16,
},
GuildName {
len: usize,
},
GuildPruneDays {
days: u16,
},
InviteMaxAge {
max_age: u32,
},
InviteMaxUses {
max_uses: u16,
},
Nickname {
len: usize,
},
ScheduledEventDescription {
len: usize,
},
ScheduledEventGetUsers {
limit: u16,
},
ScheduledEventName {
len: usize,
},
SearchGuildMembers {
limit: u16,
},
StageTopic {
len: usize,
},
TemplateDescription {
len: usize,
},
TemplateName {
len: usize,
},
Username {
len: Option<usize>,
substring: Option<&'static str>,
},
WebhookUsername {
len: Option<usize>,
substring: Option<&'static str>,
},
}
Expand description
Type of ValidationError
that occurred.
Variants§
AuditReason
Provided audit reason was too large.
AutoModerationBlockActionCustomMessageLimit
Provided block action custom message was too long.
AutoModerationMetadataMentionTotalLimit
Provided limit was too large.
AutoModerationMetadataKeywordFilter
Provided keyword filter was invalid.
AutoModerationMetadataKeywordFilterItem
Provided keyword was invalid.
AutoModerationMetadataAllowList
Provided keyword allow list was invalid.
AutoModerationMetadataAllowListItem
Provided allow list item was invalid.
AutoModerationMetadataPresetAllowList
Provided keyword preset allow list was invalid.
AutoModerationMetadataPresetAllowListItem
Provided keyword preset allow list item was invalid.
AutoModerationActionMetadataDurationSeconds
Provided seconds to disable communication was invalid.
AutoModerationMetadataRegexPatterns
Provided regex patterns was invalid.
AutoModerationMetadataRegexPatternsItem
Provided regex patterns item was invalid.
AutoModerationExemptRoles
Provided exempt roles was invalid.
AutoModerationExemptChannels
Provided exempt channels was invalid.
CreateGuildBanDeleteMessageSeconds
Provided create guild ban delete message seconds was invalid.
CommunicationDisabledUntil
Provided timestamp is too far in the future.
GetChannelMessages
Provided get channel messages limit was invalid.
GetCurrentUserGuilds
Provided get current user guilds limit was invalid.
GetEntitlements
Provided get entitlements limit was invalid.
GetGuildAuditLog
Provided get guild audit log limit was invalid.
GetGuildBans
Provided get guild bans limit was invalid.
GetGuildMembers
Provided get guild members limit was invalid.
GetReactions
Provided get reactions limit was invalid.
GuildName
Provided guild name was invalid.
GuildPruneDays
Provided guild prune days was invalid.
InviteMaxAge
Provided invite max age was invalid.
InviteMaxUses
Provided invite max uses was invalid.
Nickname
Provided nickname length was invalid.
ScheduledEventDescription
Scheduled event description is invalid.
ScheduledEventGetUsers
Scheduled event get users limit is invalid.
ScheduledEventName
Scheduled event name is invalid.
SearchGuildMembers
Provided search guild members limit was invalid.
StageTopic
Provided stage instance topic was invalid.
TemplateDescription
Provided guild template description was invalid.
TemplateName
Provided guild template name was invalid.
Username
Provided username was invalid.
WebhookUsername
Provided webhook username was invalid.