Components & Interactions
addCheckboxOption
$addCheckboxOption — Adds a new option to the newest checkbox group component
Adds a new option to the newest checkbox group component
Syntax
$addCheckboxOption[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
$addCheckboxOption[name;value;(description);(default)] → result
Example
$newModal[form;Profile]$addLabel[Tags;;$addCheckboxGroup[tags]$addCheckboxOption[A;a;First;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.