Interactions
isModal
$isModal — Is this interaction a modal submit?
Returns true when the current interaction is a modal submission.
Syntax
$isModal
Behavior
Returns true when the interaction that triggered the script is a modal submission (Discord interaction type 5), false for any other trigger, including text commands.
Parameters
None.
Return Value
true or false.
Example
$if[$isModal==true]
$description[Thanks for submitting the form.]
$endif
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.