Enum twilight_http::request::application::InteractionErrorType [−][src]
#[non_exhaustive]
pub enum InteractionErrorType {
ApplicationIdNotPresent,
CommandNameValidationFailed,
CommandDescriptionValidationFailed,
CommandOptionsRequiredFirst {
index: usize,
},
TooManyCommandPermissions,
TooManyCommands,
}
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.
ApplicationIdNotPresent
Application id was not set on the client.
CommandNameValidationFailed
Command name validation failed.
CommandDescriptionValidationFailed
Command description validation failed.
CommandOptionsRequiredFirst
Fields
index: usize
Index of the option that failed validation.
Required command options have to be passed before optional ones.
TooManyCommandPermissions
More than 10 permission overwrites were set.
TooManyCommands
Too many commands have been provided.
The maximum number of commands is defined by
InteractionError::GUILD_COMMAND_LIMIT
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InteractionErrorType
impl Send for InteractionErrorType
impl Sync for InteractionErrorType
impl Unpin for InteractionErrorType
impl UnwindSafe for InteractionErrorType
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more