Skip to main content

Slash commands

Triggered when someone runs one of your slash commands.

Slash command​

Runs when someone runs your slash command.

Settings

NameTypeRequiredDetails
Command nameTextYesLowercase command name (a-z, 0-9, dash, underscore). Length: 1 to 32 characters. Must match ^[a-z0-9_-]+$.
DescriptionTextYesDescription shown in Discord's command picker. Length: 1 to 100 characters.
Required permissionsList of PermissionNoPermissions a member must have to use the command by default.
Allow in DMsYes/NoYesWhether the command is also available in direct messages. Default: No.
Age-restrictedYes/NoYesRestrict the command to NSFW channels. Default: No.
OptionsList of Command optionNoOptions (arguments) of the command. Submitted values are available on the interaction's options lookup table. Maximum items: 25.

Provided values

NameTypeDetails
InteractionSlash commandThe slash command interaction.

Autocomplete requested​

Fires when Discord requests autocomplete suggestions for a slash-command option.

Settings

NameTypeRequiredDetails
Command NameTextNoOnly fire for this slash command. Leave empty to match all commands.
Option NameTextNoOnly fire when this option is being autocompleted. Leave empty to match all options.
SubcommandTextNoOnly 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 GroupTextNoOnly fire when the subcommand belongs to this subcommand group. Leave empty to match any group.

Provided values

NameTypeDetails
InteractionAutocomplete interactionAutocomplete interaction that was created.

Application command permissions updated​

Triggers when the permission overwrites of an application command in a server change.

Outputs

NameTypeDetails
ServerServerThe server in which the change happened.
CommandApplication commandThe command whose permissions changed.
PermissionsList of Application command permissionThe new permission overwrites.
Need more help?
Can't find what you're looking for? Our team is happy to help.