pub enum Error {
Show 22 variants
NotInGuild,
RichPresence,
Voice,
System,
Component,
Reaction,
ReactionAboveLimit(u8),
ReactionCountMultiple,
ReactionCustom,
ReactionExternal,
Sticker,
StickerLinkInvalid,
Attachment,
ContentInvalid,
SourceAboveLimit(u16),
NotCreated,
DeleteRequestCountAboveLimit(u16),
Http(Error),
DeserializeBody(DeserializeBodyError),
Validation(ValidationError),
MessageValidation(MessageValidationError),
ChannelValidation(ChannelValidationError),
}Expand description
Error type returned in this library
Variants§
NotInGuild
Message is not in a guild
RichPresence
Message is related to rich presence
Voice
Message is a voice message
System
Message is a system message
Component
Message has a non-URL component
Reaction
Message has a reaction
ReactionAboveLimit(u8)
Message has more reaction emojis than the limit
ReactionCountMultiple
Message has a reaction emoji with count higher than 1
ReactionCustom
Message has a reaction emoji that’s not unicode
ReactionExternal
Message has an external reaction emoji
Sticker
Message has a sticker
StickerLinkInvalid
Sticker in message can’t be linked to
Attachment
Message has an attachment
ContentInvalid
Message’s content is invalid
SourceAboveLimit(u16)
Message is not in last n messages
NotCreated
Message has not been created yet
DeleteRequestCountAboveLimit(u16)
Deleting messages would use more than n requests
Http(Error)
A Twilight HTTP error occurred
DeserializeBody(DeserializeBodyError)
A deserialize body error was returned
Validation(ValidationError)
A validation error was returned
MessageValidation(MessageValidationError)
A message validation error was returned
ChannelValidation(ChannelValidationError)
A channel validation error was returned