CommandInputError

class CommandInputError

Invalid user input routed to the application’s onInputError handler.

Extends:
  • Error

Properties

Property

Type

Description

argument

string

Schema key of the argument that failed, or "input" for syntax errors.

code

CommandInputErrorCode

commandName

string

received?

string

The raw text that was rejected, when there was any.

usage?

string

Generated usage line for the command, such as !ban <member> [reason].