Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.59 KB

File metadata and controls

41 lines (28 loc) · 1.59 KB

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

plugins:
  dream_commands:
    enabled: true
Field Description
can_edit Toggle a command on or off with /command toggle.
can_remove Delete a command with /command remove.
can_list List 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)

Command Permission Description
/command list can_list List custom commands
/command toggle can_edit Enable or disable a command
/command remove can_remove Delete a command
/command info none Points staff to the dashboard's Commands section

Requirements

  • Bot must be able to register guild application commands.