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