Command
Abstract base class representing the few things that command objects can have in common.
This should be used as a base class only for command types that aren't related to the other command types.
Inheritors
Properties
Link copied to clipboard
Translation cache, so we don't have to look up translations every time.
Link copied to clipboard
Permissions required to be able to run this command.
Link copied to clipboard
Sentry adapter, for easy access to Sentry functions.
Link copied to clipboard
Bot settings object.
Link copied to clipboard
Translations provider, for retrieving translations.
Functions
Link copied to clipboard
Checks whether the bot has the specified required permissions, throwing if it doesn't.
Link copied to clipboard
Quick shortcut for emitting a command event without blocking.
Link copied to clipboard
If your bot requires permissions to be able to execute the command, add them using this function.