Enum CommandError
Defines the type of error a command can throw.
Assembly: Discord.Net.Commands.dll​
View Source​
Declaration
public enum CommandError
Fields​
UnknownCommand​
Thrown when the command is unknown.
View Source​
Declaration
UnknownCommand = 1
ParseFailed​
Thrown when the command fails to be parsed.
View Source​
Declaration
ParseFailed = 2
BadArgCount​
Thrown when the input text has too few or too many arguments.
View Source​
Declaration
BadArgCount = 3
ObjectNotFound​
Thrown when the object cannot be found by the Discord.Commands.TypeReader.
View Source​
Declaration
ObjectNotFound = 4
MultipleMatches​
Thrown when more than one object is matched by Discord.Commands.TypeReader.
View Source​
Declaration
MultipleMatches = 5
UnmetPrecondition​
Thrown when the command fails to meet a Discord.Commands.PreconditionAttribute's conditions.
View Source​
Declaration
UnmetPrecondition = 6
Exception​
Thrown when an exception occurs mid-command execution.
View Source​
Declaration
Exception = 7
Unsuccessful​
Thrown when the command is not successfully executed on runtime.
View Source​
Declaration
Unsuccessful = 8