Skip to content
Components & Interactions addStringSelectMenuTo

$addStringSelectMenuTo — Creates a string select menu on a message

Creates a string select menu on a message

Syntax

$addStringSelectMenuTo[channelID;messageID;customID;(placeholder);(disabled);(minvalues);(maxvalues)]

Parameters

  • channelID (id, required) — The channel id to pull message from
  • messageID (id, required) — The message to add select menu to
  • 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

Return Value

  • Boolean.

Usage

$addStringSelectMenuTo[channelID;messageID;customID;(placeholder);(disabled);(minvalues);(maxvalues)] → result

Example

$sendMessage[$addStringSelectMenuTo[30;1001;pick;Choose;false;1;1;One=one;Two=two]]

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.