#[non_exhaustive]pub enum EmbedErrorType {
Show 16 variants
AuthorNameEmpty {
name: String,
},
AuthorNameTooLong {
name: String,
},
ColorNotRgb {
color: u32,
},
ColorZero,
DescriptionEmpty {
description: String,
},
DescriptionTooLong {
description: String,
},
FieldNameEmpty {
name: String,
value: String,
},
FieldNameTooLong {
name: String,
value: String,
},
FieldValueEmpty {
name: String,
value: String,
},
FieldValueTooLong {
name: String,
value: String,
},
FooterTextEmpty {
text: String,
},
FooterTextTooLong {
text: String,
},
TitleEmpty {
title: String,
},
TitleTooLong {
title: String,
},
TotalContentTooLarge {
length: usize,
},
TooManyFields {
fields: Vec<EmbedField>,
},
}
Expand description
Type of EmbedError
that occurred.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AuthorNameEmpty
Name is empty.
Fields
AuthorNameTooLong
Name is longer than 256 UTF-16 code points.
ColorNotRgb
Color was larger than a valid RGB hexadecimal value.
Fields
ColorZero
Color was 0. The value would be thrown out by Discord and is equivalent to null.
DescriptionEmpty
Description is empty.
Fields
DescriptionTooLong
Description is longer than 4096 UTF-16 code points.
Fields
FieldNameEmpty
Name is empty.
Fields
FieldNameTooLong
Name is longer than 256 UTF-16 code points.
Fields
FieldValueEmpty
Value is empty.
Fields
FieldValueTooLong
Value is longer than 1024 UTF-16 code points.
Fields
Footer text is empty.
Footer text is longer than 2048 UTF-16 code points.
TitleEmpty
Title is empty.
Fields
TitleTooLong
Title is longer than 256 UTF-16 code points.
TotalContentTooLarge
The total content of the embed is too large.
Refer to EmbedBuilder::EMBED_LENGTH_LIMIT
for more information about
what goes into this limit.
Fields
TooManyFields
Too many fields were provided.
Refer to EmbedBuilder::EMBED_FIELD_LIMIT
for more information about
what the limit is.
Fields
fields: Vec<EmbedField>
The provided fields.