namespace Discord.Commands { /// Defines the type of error a command can throw. public enum CommandError { //Search /// /// Thrown when the command is unknown. /// UnknownCommand = 1, //Parse /// /// Thrown when the command fails to be parsed. /// ParseFailed, /// /// Thrown when the input text has too few or too many arguments. /// BadArgCount, //Parse (Type Reader) //CastFailed, /// /// Thrown when the object cannot be found by the . /// ObjectNotFound, /// /// Thrown when more than one object is matched by . /// MultipleMatches, //Preconditions /// /// Thrown when the command fails to meet a 's conditions. /// UnmetPrecondition, //Execute /// /// Thrown when an exception occurs mid-command execution. /// Exception, //Runtime /// /// Thrown when the command is not successfully executed on runtime. /// Unsuccessful } }