Table of Contents

Enum InteractionCommandError

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Defines the type of error a command can throw.

public enum InteractionCommandError

Fields

BadArgs = 2

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

ConvertFailed = 1

Thrown when the Slash Command parameter fails to be converted by a TypeReader.

Exception = 3

Thrown when an exception occurs mid-command execution.

ParseFailed = 6

Thrown when the command context cannot be parsed by the ICommandInfo.

UnknownCommand = 0

Thrown when the command is unknown.

UnmetPrecondition = 5

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

Unsuccessful = 4

Thrown when the command is not successfully executed on runtime.