Skip to content

Custom Discord slash commands, without code

A command is a trigger plus what the bot does. In Bot Creator you pick the trigger, then build the answer with blocks, or write it in BDFD or JavaScript if you prefer.

How to build it

  1. Create a command and choose how it starts: Slash command, Text Message (prefix), User command or Message command.
  2. Choose how it is built: Visual (Blocks), BDFD Code or JavaScript.
  3. Add Respond with Message with text, embeds and buttons. Read the user’s input with ((opts.option_name)) and the user’s name with ((user.username)).
  4. Add logic as needed: IF / ELSE Block, Random Choice, Cooldown, HTTP Request, and variables to remember things between runs.
  5. Check the message in the playground before you deploy.

Blocks you will use

Block names are the ones of the app; each links to its entry in the dictionary.

What to know

  • The playground draws only the message of reply and send blocks; other blocks are edited and exported but not run there.
  • Which functions BDFD code can use is listed in the reference, function by function.

Go further

Other things you can build