Components & Interactions
addOption
$addOption — Adds a select menu option
Adds a select menu option
Syntax
$addOption[name;(description);value;(emoji);(default)]
Parameters
- name (text, required) — The option name
- description (text, optional) — The description for this option
- value (text, required) — The value to use for this option
- emoji (text, optional) — The emoji to use for this option
- default (boolean, optional) — Whether to set this option as default
Return Value
- String.
Usage
$addOption[name;(description);value;(emoji);(default)] → result
Example
$addStringSelectMenu[menu]$addOption[One;First;one]$addOption[Two;;two;;true]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.