ICommand
Index
Properties
optionalAction
Type declaration
Parameters
this: ICommand[]
argumentsString: string
message: string
arguments: string[]
Returns void
optionalArguments
Array of arguments that the command accepts. Can be a function to generate arguments at runtime. Typically used to provide additional context for users
optionalAutoComplete
Function to execute on autocomplete key (Tab default) press if chat input matches tag
Type declaration
Parameters
this: ICommand
arguments: string[]
lowercaseMessage: string
message: string
Returns void
optionalClear
Whether chat input should be cleared after execution of command. True if omitted
optionalDescription
Description of the command
optionalPrerequisite
Function that returns whether the command can be executed
Type declaration
Parameters
this: ICommand
Returns boolean
optionalPreserveCase
Whether the case of the command should be preserved. False if omitted
optionalReference
Reference to another command, used for aliases
optionalSubcommands
Array of commands that can be used as subcommands.
Tag
Name of the command
The function that handles the command