Docs/Plugins

Custom commands plugin

Custom slash commands (/name), built on the website dashboard. Each command is always exactly one reply, text or embed.

Reference: ../dreamcode/README.md

#Configuration

yaml
plugins:
  dream_commands:
    enabled: true
FieldDescription
can_editToggle a command on or off with /command toggle.
can_removeDelete a command with /command remove.
can_listList commands with /command list.

Grant can_edit, can_remove, and can_list to a Dreamliner Role on the dashboard's Roles page (or /permissions role grant) — see permissions.md.

Commands themselves are created and edited on the dashboard, not gated by a Discord-side permission (creating one still requires Manage Server on the dashboard).

#Registration

Every custom command registers as a guild slash command, up to 10 per server. Names cannot collide with a built-in Dreamliner command (help, ban, command, …). Slash commands sync per guild via Discord's guild command API and may take up to a minute to appear after create, remove, or edit.

#Slash commands (management)

CommandPermissionDescription
/command listcan_listList custom commands
/command togglecan_editEnable or disable a command
/command removecan_removeDelete a command
/command infononePoints staff to the dashboard's Commands section

#Requirements

  • Bot must be able to register guild application commands.