How to create custom commands in Discord
How to create custom commands in Discord with Green-bot: a slash command or a keyword, a reply with an embed and buttons, and who can use it.
Here is how to create custom commands in Discord with Green-bot. A custom command answers with your own reply: text, an embed and buttons. You need the Manage Server permission on the server.
Add Green-bot to your server
If Green-bot is not on your server yet, open this invite link, pick your server and click Authorize.
Create the command
- Use
/dashboardand pick your server. - Under Server tools, open Commands and click + New command.
Custom commands - What should it do? Pick a starting point, like Server rules, Simple reply or Get a role, or Other for a blank command.
- Write the reply right in the Discord preview: text, an embed, link buttons and role buttons.
- Check the Name: members type it after the slash. Add a short Description: Discord shows it in the / list.
- Click the create button.
Example: Jason creates a rules command from Server rules. Members type a slash, pick rules in the list, and Green-bot answers with an embed of the server rules.
Slash command or keyword
In Triggered by, choose:
- Slash command: members pick it in the / list of your server.
- Keyword: Green-bot answers a message that is exactly the word you pick.
Choose who and where
- Who can use it: everyone, or only the roles you pick.
- Where the reply goes: in the channel, in the member's DMs, or in a channel you pick.
- Only the member sees the reply: a private reply, for slash commands.
- Wait between two uses: a delay before the same member can use it again.
Go further
For every option, see Custom commands and timers in depth. If Green-bot cannot post the reply, see Green-bot can't post or give roles.
See everything custom commands can do on the custom commands page.
Still stuck? Ask on the support server.