CommandOptions
Supported command options
Properties
prefix
ts
prefix: string;
The prefix used to identify a command. Defaults to /
.
matchOnlyAtStart
ts
matchOnlyAtStart: boolean;
Whether the command should only be matched at the start of the message. Defaults to true
.
targetedCommands
ts
targetedCommands: "ignored" | "optional" | "required";
Whether to ignore or only care about commands ending with the bot’s username. Defaults to "optional"
.
"ignored"
: only non-targeted commands are matched"optional"
: both targeted and non-targeted commands are matched"required"
: only targeted commands are matched
ignoreCase
ts
ignoreCase: boolean;
Whether match against commands in a case-insensitive manner. Defaults to false
.