Skip to content
Components & Interactions addStringSelectMenu

$addStringSelectMenu — Creates a string select menu

Creates a string select menu

Syntax

$addStringSelectMenu[customID;(placeholder);(disabled);(minvalues);(maxvalues);(required)]

Parameters

  • customID (id, required) — The 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
  • required (boolean, optional) — Whether this menu is required inside a modal

Return Value

  • String.

Usage

$addStringSelectMenu[customID;(placeholder);(disabled);(minvalues);(maxvalues);(required)] → result

Example

$addStringSelectMenu[menu;Pick;true;1;2]$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.