ChatSubCommand
Class representing a subcommand.
This is used for group commands, so that subcommands are aware of their parent.
Parameters
The Extension that registered this command.
The ChatGroupCommand this command exists under.
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 command, given a MessageCreateEvent.
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.