BotManualTHE COMMUNITY PLAYBOOK
English

Custom commands: setup and everyday use

Your own slash commands (/faq, /rules, /ip…) and keyword auto-replies with embeds, buttons and random answers.

4 min read
On this page

What this feature does

Your own slash commands (/faq, /rules, /ip) and keyword auto-replies, built in a web console without code.

Before you begin

For server settings, open your server dashboard and select the server you manage. For commands and buttons, use the server where your community has enabled this feature. The options available to a member depend on that server’s settings.

Get started

1. Enable Custom commands

Open your server dashboard, pick your server and switch on Custom commands. Choose whether only the first matching auto-reply runs or all of them.

2. Create a command

Give it a name like ip, a description and an answer. Add an optional user or text option, buttons, a cooldown and the roles or channels that may use it.

3. Add auto-replies

Type the keywords, pick how they match and what the bot does. The test box shows which rule would fire for any message before you save.

4. Use it in Discord

Members type /ip or ask “what’s the ip?” in chat and get the answer right away. The console shows how often each command and rule was used.

Custom slash commands that behave like built-in ones

Each custom command is registered with Discord as a slash command for your server only, so members get autocomplete and descriptions instead of guessing a !prefix command. A command can take one option, a member or a short text, which you insert into the answer with {option}. Make the answer visible to everyone or only to the person who ran it (an ephemeral reply). Only member mentions ever ping; roles and @everyone in an answer stay silent.

You can create up to 10 commands on Free and 100 on Pro. Names of the bot’s own commands are reserved, and Discord allows up to 100 server commands per bot. If a command can’t be registered, the console shows why.

  • {user}, {user.mention}, {user.name}, {user.id}: the member
  • {server}, {channel}, {membercount}: where it happened
  • {option}: the value typed into the command option
  • {random:a|b|c}: one of several words or phrases

An auto responder that stays under control

Auto-replies run in the order you set. Limit them to certain channels or roles, ignore others, and add a cooldown per member and per channel so a busy chat doesn’t turn into bot spam. Bots, webhooks and system messages never trigger a rule, and a built-in cap stops runaway replies during a spam wave.

Reading message text needs Discord’s Message Content access for the bot; without it, rules only see messages that mention the bot, and the console tells you so. You can have up to 10 auto-replies on Free and 100 on Pro. For multi-step automations, open a rule in Flows with one click.

Questions and troubleshooting

How do I make a custom command on Discord?

Invite the bot, open the console, enable Custom commands and click New command. Enter a name, a description and the answer, then save. The slash command appears in your server’s / menu about half a minute later.

What is the difference between a custom command and an auto-reply?

A custom command runs when a member types it in the / menu. An auto-reply watches normal chat messages and reacts when a keyword or pattern matches, with no command needed.

Can a custom command give a role?

Yes. Add a role button to the answer: each click adds the role or removes it again. Auto-replies can also add or remove roles directly. The role must be below the bot, and roles with dangerous permissions are blocked unless listed under Privileged roles.

Why doesn’t my auto-reply react to messages?

Check that the rule is enabled and its channel and role filters fit, then try your message in the console’s test box. If the bot has no Message Content access, it only sees messages that mention it, and the console shows a notice.

How many custom commands can I create?

Up to 10 commands and 10 auto-replies on the Free plan, and 100 of each on Pro. See pricing.

Next steps

Use the command reference below for the available Discord actions. If something does not appear or respond, follow Troubleshooting. Server admins can check roles and permissions before changing access.

Commands for this feature

This feature is used through its console settings, messages or buttons. It has no dedicated command in the current reference.

Find an answer

Search features, commands and the full text of every guide.

Start typing to find a guide.

Browse all guides