Table of Contents

Enum CommandError

Namespace
Discord.Commands
Assembly
Discord.Net.Commands.dll

Defines the type of error a command can throw.

public enum CommandError

Fields

BadArgCount = 3

Thrown when the input text has too few or too many arguments.

Exception = 7

Thrown when an exception occurs mid-command execution.

MultipleMatches = 5

Thrown when more than one object is matched by TypeReader.

ObjectNotFound = 4

Thrown when the object cannot be found by the TypeReader.

ParseFailed = 2

Thrown when the command fails to be parsed.

UnknownCommand = 1

Thrown when the command is unknown.

UnmetPrecondition = 6

Thrown when the command fails to meet a PreconditionAttribute's conditions.

Unsuccessful = 8

Thrown when the command is not successfully executed on runtime.