ChatCommand
Class representing a chat command.
You shouldn't need to use this class directly - instead, create an Extension and use the chatCommand function to register your command, by overriding the Extension.setup function.
Parameters
The Extension that registered this command.
Arguments object builder for this command, if it has arguments.
Inheritors
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.
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.