Enum twilight_http::request::channel::webhook::update_webhook_message::UpdateWebhookMessageErrorType [−][src]
#[non_exhaustive] pub enum UpdateWebhookMessageErrorType { ContentInvalid { content: String, }, EmbedTooLarge { embeds: Vec<Embed>, index: usize, }, TooManyEmbeds { embeds: Vec<Embed>, }, }
Expand description
Type of UpdateWebhookMessageError
that occurred.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Content is over 2000 UTF-16 characters.
Show fields
Fields of ContentInvalid
content: String
Provided content.
Length of one of the embeds is over 6000 characters.
Show fields
Too many embeds were provided.
A webhook can have up to 10 embeds.
Trait Implementations
Auto Trait Implementations
impl Send for UpdateWebhookMessageErrorType
impl Sync for UpdateWebhookMessageErrorType
impl Unpin for UpdateWebhookMessageErrorType
impl UnwindSafe for UpdateWebhookMessageErrorType