Commands
The command builders allow you to configure Kord Extensions' command frameworks. Currently, Kord Extensions supports two primary command types:
Application commands, which include message, slash and user commands
Chat commands, which are commands via messages in Discord channels
For more information on commands and how to write them, see the dedicated documentation for them.
Application Commands
The applicationCommands
builder allows you to configure the Kord Extensions application commands framework, which includes context (user and message) commands and slash commands.
Builders
Builder | Receiver | Description |
---|---|---|
| Register a callable object (usually a constructor) that returns an alternative implementation of the | |
|
| Register a check that will apply to all registered message commands. |
|
| Register a check that will apply to all registered slash commands. |
|
| Register a check that will apply to all registered user commands. |
Functions
Function | Parameters | Description |
---|---|---|
| Specify a guild to register all global application commands to. This is intended for testing, and will apply to all application commands that don't have a registration guild specified. | |
|
| Specify a guild to register all global application commands to. This is intended for testing, and will apply to all application commands that don't have a registration guild specified. |
|
| Specify a guild to register all global application commands to. This is intended for testing, and will apply to all application commands that don't have a registration guild specified. |
Properties
Name | Type | Default | Description |
---|---|---|---|
|
|
| Whether the application commands framework should be enabled. If your bot does not use application commands, setting this to |
|
|
| Whether application commands should be registered with Discord automatically. Set this to |
Chat Commands
The applicationCommands
builder allows you to configure the Kord Extensions chat commands framework, which handles the parsing and processing of chat commands.
Builders
Builder | Receiver | Parameters | Description |
---|---|---|---|
| Register a check that will apply to all registered chat commands. | ||
|
| Set the prefix callback, which allows you to provide different command prefixes for different contexts. The | |
| Register a callable object (usually a constructor) that returns an alternative implementation of the |
Properties
Name | Type | Default | Description |
---|---|---|---|
|
|
| The default command prefix, required before the name of a chat command at the start of a message. The |
|
|
| Whether the chat commands framework should be enabled. If your bot uses chat commands, setting this to |
|
|
| Whether to ignore messages sent by the bot, and thus avoid executing commands invoked by it. |
|
|
| Whether users should be able to run chat commands by mentioning the bot at the start of their message, instead of using the configured prefix. |