Components & Interactions
addCheckbox
$addCheckbox — Adds a new checkbox component to the newest modal label
Adds a new checkbox component to the newest modal label
Syntax
$addCheckbox[customID;(default)]
Parameters
- customID (id, required) — The custom id for this field
- default (boolean, optional) — Whether this field is checked by default
Return Value
- String.
Usage
$addCheckbox[customID;(default)] → result
Example
$newModal[form;Profile]$addLabel[Terms;;$addCheckbox[terms;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.