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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MessageValidationErrorType
impl Send for MessageValidationErrorType
impl Sync for MessageValidationErrorType
impl Unpin for MessageValidationErrorType
impl UnwindSafe for MessageValidationErrorType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more