ApplicationCommand
Abstract class representing an application command - extend this for actual implementations.
Parameters
Extension this application command belongs to.
Inheritors
Properties
Whether to allow everyone to use this command by default.
Enables or disables the command in DMs.
Default set of Permissions required to use the command on a guild.
Translation cache, so we don't have to look up translations every time.
Quick access to the command registry.
Permissions required to be able to run this command.
Sentry adapter, for easy access to Sentry functions.
Bot settings object.
Translations provider, for retrieving translations.
Functions
Override this to implement the calling logic for your subclass.
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.
If your bot requires permissions to be able to execute the command, add them using this function.
This will register a requirement for permissions with Discord.
Runs standard checks that can be handled in a generic way, without worrying about subclass-specific checks.