Enum InteractionCommandError
Defines the type of error a command can throw.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public enum InteractionCommandError : int
Fields
Name | Description |
---|---|
BadArgs | Thrown when the input text has too few or too many arguments. |
ConvertFailed | Thrown when the Slash Command parameter fails to be converted by a TypeReader. |
Exception | Thrown when an exception occurs mid-command execution. |
ParseFailed | Thrown when the command context cannot be parsed by the ICommandInfo. |
UnknownCommand | Thrown when the command is unknown. |
UnmetPrecondition | Thrown when the command fails to meet a PreconditionAttribute's conditions. |
Unsuccessful | Thrown when the command is not successfully executed on runtime. |