Skip to content
Components & Interactions modal

$modal — Creates a modal

Creates a modal

Syntax

$modal[customID;title]

Parameters

  • customID (id, required) — The custom id for this modal
  • title (text, required) — The title for the modal

Return Value

  • String.

Usage

$modal[customID;title] → result

Example

$modal[form;Profile]

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.