Creates a new ArgumentContext.
The options of the ArgumentContext.
Optional
argumentThe argument parser of this context, if the command has no arguments it will be undefined.
The command itself.
The current argument.
The handler.
The index of the current argument in the arguments of the command.
The message that executed the command.
The arguments in the message.
The old list of raw arguments.
Returns the arguments joined with a space between each.
Returns the list of arguments of the command.
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 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 command. 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