Components & Interactions
editOption
$editOption — Edits a select menu option
Edits a select menu option
Syntax
$editOption[name;newname;(description);(value);(emoji);(default)]
Parameters
- name (text, required) — The option name to find
- newname (text, required) — The new option name
- description (text, optional) — The new description for this option
- value (text, optional) — The new value for this option
- emoji (text, optional) — The new emoji for this option
- default (boolean, optional) — Whether to set this option as default
Return Value
- String.
Usage
$editOption[name;newname;(description);(value);(emoji);(default)] → result
Example
$addStringSelectMenu[menu]$addOption[One;First;one]$editOption[One;Uno;Premier;uno;;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.