Basic Command APIs
All command types extend the Command type, which provides some basic common APIs.
These APIs are available regardless of command type, so you should familiarise yourself with them!
Abstract base type representing everything that all commands have in common.
The extension that registered this command.
Functions
Specify any permissions your bot needs to be able to execute the command. Permissions will be checked against the command's execution context - the current guild and channel.
The permissions your bot requires.
Show/Hide Internal APIs
Check the permissions provided via the requireBotPermissions function, throwing a DiscordRelayedException
with a suitable error if your boot doesn't have the required permissions.
Command context used to check permissions.
Quick shortcut to emit a CommandEvent without blocking the current coroutine.
Event object to emit.
Properties
The extension that registered this command.
Command name, used when invoking the command and shown in help commands.
Quick access to your bot's backing Kord instance.
Quick access to your bot's Sentry adapter (TODO).
Quick access to your bot's settings.
Quick access to the registered translations provider (TODO).
Show/Hide Internal APIs
Command name translation cache, used to avoid repeated translation calls.
Set of permissions required to execute the command, provided via requireBotPermissions.