pub enum SerenityEmbedConvertError {
TooLongDescription,
TooManyFields,
}Expand description
Errors that can occur when converting a SerenityEmbed to a serenity::all::CreateEmbed.
Variants§
TooLongDescription
This occurs when the embedded description exceeds 4096 characters and is subject to Discord API limitations.
Serenity-builder will report an error during conversion. Serenity does not return an error and leaves the response entirely up to the Discord API.
TooManyFields
This occurs when the number of embedded fields exceeds 25 and hits the Discord API limit.
Serenity-builder will report an error during conversion. Serenity does not return an error and leaves the response entirely up to the Discord API.
Trait Implementations§
Source§impl Debug for SerenityEmbedConvertError
impl Debug for SerenityEmbedConvertError
Source§impl Display for SerenityEmbedConvertError
impl Display for SerenityEmbedConvertError
Source§impl Error for SerenityEmbedConvertError
impl Error for SerenityEmbedConvertError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<SerenityEmbedConvertError> for SerenityMessageConvertError
impl From<SerenityEmbedConvertError> for SerenityMessageConvertError
Source§fn from(source: SerenityEmbedConvertError) -> Self
fn from(source: SerenityEmbedConvertError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerenityEmbedConvertError
impl RefUnwindSafe for SerenityEmbedConvertError
impl Send for SerenityEmbedConvertError
impl Sync for SerenityEmbedConvertError
impl Unpin for SerenityEmbedConvertError
impl UnwindSafe for SerenityEmbedConvertError
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