Parameters
Parameters are what a member fills in when they run the command, like the member in /hug member or
the role in /roles pick. Blocks use them, and texts show them as {name}.
Add them in the /command card with Add parameter. A command can have up to 10.
Each parameter
- Name: lowercase, no spaces, up to 32 characters. It is what members see in Discord and what you write in texts, like
{member}. - Type: what can be filled in. See below.
- Description: shown in Discord while the member fills it in.
- Required: on, the command can't be run without it. Off, it may be left empty.
Discord always lists required parameters before optional ones, whatever their order here.
A parameter can't be named author, server, channel or command: those are
built-in placeholders. The editor warns when you try.
Types
| Type | Members fill in | Used by |
|---|---|---|
| Member | A member of the server | Direct message and Give or take roles (to whom), If a member has roles |
| Role | A role | Give or take roles, as an extra role to give or take |
| Channel | A channel | Message to a channel, as where to post |
| Text | Any text | Texts and If a parameter is a value |
| Number | A number | Texts and If a parameter is a value |
| Pick from a list | One of the choices you set | By choice, and If a parameter is a value |
Pick from a list
A Pick from a list parameter has up to 25 Choices. Discord shows them as a menu, so members can only pick one of them. Each choice is up to 100 characters.
What each choice does is set with a By choice block: the picture gets a branch for every choice.
A parameter left empty
When an optional parameter is not filled in:
- blocks that need it do nothing, for example Give roles to
{member}without a member; {name}in a text stays as it is written;- If a parameter is filled in answers No.
Use an If block to do something else in that case.
Safety of picked values
- A Role picked by a member is always held to the strictest checks: below the member's own highest role and without moderation rights, whatever the command's settings.
- A Channel picked by a member is used only if that member could post there themselves.
- Typed Text is shown as plain text: it can't pass for a real mention or ping anyone.