Building

Slash commands

Names, options, permissions, responses and ephemeral replies.

What a command contains

A slash command has a name, description and optional inputs. Its flow determines what happens after invocation. Naming a command does not automatically create a response: connect its Slash Command trigger to an action.

Configure the trigger

Use a lowercase name without spaces, such as ticket or rank. Enter a description that explains the result, not “my command”. Choose where it can run and any default member permission. If prefixes are configured for the bot, the No Prefix setting determines whether this command remains slash-only.

Add inputs

Choose the correct option type: user for a member picker, channel for a channel picker, integer for a whole-number quantity. Required options come before optional ones. If an option is called reason, later text can use {reason}. A user option can replace {user}; {author} remains the person who invoked the command.

Reply and publish

Connect Slash Command → Reply, write the response, and choose whether it is ephemeral. Validate and publish. Test with both an allowed member and a member who should be denied. Default Discord permissions affect discoverability, but sensitive actions should also check permissions inside the flow.

When it is missing

Check the correct application, invite scope, latest publication and runtime logs before recreating the command. A name duplicated across flows cannot become two separate Discord commands.