Slash commands
Triggered when someone runs one of your slash commands.
Slash command
Runs when someone runs your slash command.
Settings
| Name | Type | Required | Details |
|---|---|---|---|
| Command name | Text | Yes | Lowercase command name (a-z, 0-9, dash, underscore). Length: 1 to 32 characters. Must match ^[a-z0-9_-]+$. |
| Description | Text | Yes | Description shown in Discord's command picker. Length: 1 to 100 characters. |
| Required permissions | List of Permission | No | Permissions a member must have to use the command by default. |
| Allow in DMs | Yes/No | Yes | Whether the command is also available in direct messages. Default: No. |
| Age-restricted | Yes/No | Yes | Restrict the command to NSFW channels. Default: No. |
| Options | List of Command option | No | Options (arguments) of the command. Submitted values are available on the interaction's options lookup table. Maximum items: 25. |
Provided values
| Name | Type | Details |
|---|---|---|
| Interaction | Slash command | The slash command interaction. |
Autocomplete requested
Fires when Discord requests autocomplete suggestions for a slash-command option.
Settings
| Name | Type | Required | Details |
|---|---|---|---|
| Command Name | Text | No | Only fire for this slash command. Leave empty to match all commands. |
| Option Name | Text | No | Only fire when this option is being autocompleted. Leave empty to match all options. |
| Subcommand | Text | No | Only fire when the user is typing in this subcommand. Use this when several subcommands share an option name. Leave empty to match all subcommands. |
| Subcommand Group | Text | No | Only fire when the subcommand belongs to this subcommand group. Leave empty to match any group. |
Provided values
| Name | Type | Details |
|---|---|---|
| Interaction | Autocomplete interaction | Autocomplete interaction that was created. |
Application command permissions updated
Triggers when the permission overwrites of an application command in a server change.
Outputs
| Name | Type | Details |
|---|---|---|
| Server | Server | The server in which the change happened. |
| Command | Application command | The command whose permissions changed. |
| Permissions | List of Application command permission | The new permission overwrites. |
Need more help?
Can't find what you're looking for? Our team is happy to help.