ChatGroupCommand
Class representing a grouped command, which is essentially a command with its own subcommands.
You shouldn't need to use this class directly - instead, create an Extension and use the group function to register your command group, by overriding the Extension setup function.
Parameters
The extension that registered this grouped command.
The ChatGroupCommand this group exists under, if any.
Constructors
Properties
Translation cache, so we don't have to look up translations every time.
Whether to allow the parser to parse keyword arguments. Defaults to true.
A description of what this function and how it's intended to be used.
When translated, whether this command supports locale fallback when a user is trying to resolve a command by name in a locale other than the bot's configured default locale.
Translation cache, so we don't have to look up translations every time.
Chat command registry.
Permissions required to be able to run this command.
Sentry adapter, for easy access to Sentry functions.
Bot settings object.
Locale-based cache of generated signature strings.
Translations provider, for retrieving translations.
Functions
Define what will happen when your command is invoked.
Execute this grouped command, given a MessageCreateEvent.
Function for registering a custom command object.
DSL function for easily registering a command, without arguments.
DSL function for easily registering a command.
DSL function for easily registering a grouped command, without its own arguments.
DSL function for easily registering a grouped command.
Define a check which must pass for the command to be executed.
Overloaded check function to allow for DSL syntax.
Checks whether the bot has the specified required permissions, throwing if it doesn't.
Quick shortcut for emitting a command event without blocking.
Get the full command name, translated, with parent commands taken into account.
Retrieve the command signature for a locale, which specifies how the command's arguments should be structured.
Return this command's aliases translated for the given locale, cached as required.
Return this command's name translated for the given locale, cached as required.
If your bot requires permissions to be able to execute the command, add them using this function.