pub enum MessageValidationErrorType {
AttachmentFilename {
filename: String,
},
AttachmentDescriptionTooLarge {
chars: usize,
},
ComponentCount {
count: usize,
},
ComponentInvalid {
idx: usize,
kind: ComponentValidationErrorType,
},
ContentInvalid,
EmbedInvalid {
idx: usize,
kind: EmbedValidationErrorType,
},
StickersInvalid {
len: usize,
},
TooManyEmbeds,
WebhookUsername,
}
Expand description
Type of MessageValidationError
that occurred.
Variants§
AttachmentFilename
Attachment filename is not valid.
AttachmentDescriptionTooLarge
Attachment description is too large.
ComponentCount
Too many message components were provided.
ComponentInvalid
Fields
§
kind: ComponentValidationErrorType
Additional details about the validation failure type.
An invalid message component was provided.
ContentInvalid
Returned when the content is over 2000 UTF-16 characters.
EmbedInvalid
Fields
§
kind: EmbedValidationErrorType
Additional details about the validation failure type.
Returned when the embed is invalid.
StickersInvalid
Amount of stickers provided is invalid.
TooManyEmbeds
Too many embeds were provided.
A followup message can have up to 10 embeds.
WebhookUsername
Provided webhook username was invalid.