Skip to content
Components & Interactions editStringSelectMenu

$editStringSelectMenu — Edits a string select menu

Edits a string select menu

Syntax

$editStringSelectMenu[oldcustomID;newcustomID;(placeholder);(disabled);(minvalues);(maxvalues)]

Parameters

  • oldcustomID (id, required) — The custom id of the menu to edit
  • newcustomID (id, required) — The new custom id to use for this menu
  • placeholder (text, optional) — The placeholder to use for the menu
  • disabled (boolean, optional) — Whether to keep this menu disabled
  • minvalues (number, optional) — The min values to choose for the menu
  • maxvalues (number, optional) — The max values to choose for the menu

Return Value

  • String.

Usage

$editStringSelectMenu[oldcustomID;newcustomID;(placeholder);(disabled);(minvalues);(maxvalues)] → result

Example

$addStringSelectMenu[menu;Pick]$addOption[One;;one]$editStringSelectMenu[menu;menu2;New;true;1;1]

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.