Skip to content
Components & Interactions addLabel

$addLabel — Adds a new label component to the modal

Adds a new label component to the modal

Syntax

$addLabel[name;(description);component]

Parameters

  • name (text, required) — The name for the label
  • description (text, optional) — The description for the label
  • component (text, required) — The component to attach to the label

Return Value

  • String.

Usage

$addLabel[name;(description);component] → result

Example

$newModal[form;Profile]$addLabel[Plan;Pick one;$addRadioGroup[plan;true]$addRadioOption[Basic;basic;Basic plan;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.