Components & Interactions
addRadioOption
$addRadioOption — Adds a new option to the newest radio group component
Adds a new option to the newest radio group component
Syntax
$addRadioOption[name;value;(description);(default)]
Parameters
- name (text, required) — The option name
- value (text, required) — The value to use for this option
- description (text, optional) — The description for this option
- default (boolean, optional) — Whether to set this option as default
Return Value
- String.
Usage
$addRadioOption[name;value;(description);(default)] → result
Example
$newModal[form;Profile]$addLabel[Plan;;$addRadioGroup[plan]$addRadioOption[Basic;basic;Basic plan]]
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.