Components & Interactions
addRadioGroup
$addRadioGroup — Adds a new radio group component to the newest modal label
Adds a new radio group component to the newest modal label
Syntax
$addRadioGroup[customID;(required)]
Parameters
- customID (id, required) — The custom id for this field
- required (boolean, optional) — Whether selecting an option is required
Return Value
- String.
Usage
$addRadioGroup[customID;(required)] → result
Example
$newModal[form;Profile]$addLabel[Plan;;$addRadioGroup[plan;false]$addRadioOption[Basic;basic]]
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.