Creates a new SubCommandContext associated to a SubCommand.
The options of this context.
Optional
argumentThe argument parser of this context, if the command has no arguments it will be undefined.
The command itself.
The handler.
The message that executed the command.
The arguments in the message.
The SubCommand related to this SubcommandContext.
The old list of raw arguments.
Returns the arguments joined with a space between each.
Returns the list of arguments of the SubCommand.
Returns the channel where the command was executed.
Returns the client.
Returns the name of the command executed.
Returns the content of the message.
Returns the guild of the message.
Returns true if the arguments are calling a SubCommand.
Returns the member of the message, null
if executed in private messages.
Returns the prefix used in the message.
Returns the name of the subCommand associated to this SubCommandContext.
Returns the channel where the command was executed as a TextChannel or undefined if it isn't.
Returns the channel where the command was executed as a ThreadChannel or undefined if it isn't.
Returns the author of the message.
Returns an argument.
If the argument is errored or not found it will return null
.
The name of the argument.
Optional
filterOld: booleanOptional
filterOld: booleanOptional
filterOld: booleanResolves one of the argument. If the argument is errored it will return a CommandError.
The name of the argument.
Internally it uses resolveArguments.
Resolves all of the arguments of the SubCommand. If an argument has an error it will return a CommandError.
Sends the help menu of the command from the default HelpCommand
command (even if you are not using it).
The name of the command to send the help menu.
Generated using TypeDoc
See
https://ayfri.gitbook.io/advanced-command-handler/concepts/commands/context