Skip to content
Components & Interactions addChoice

$addChoice — Adds an autocomplete choice

Adds an autocomplete choice

Syntax

$addChoice[choicename;choicevalue]

Parameters

  • choicename (text, required) — The name for this choice
  • choicevalue (text, required) — The value for this choice

Return Value

  • String.

Usage

$addChoice[choicename;choicevalue] → result

Example

$addChoice[Pizza;pizza]

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.