Interactions
interactionData
$interactionData
Reads what the current interaction carries (never its token): id, applicationId, type… The whole set as JSON without a field. Bot Creator function, not in the official BDFD wiki.
Syntax
$interactionData[(field)]
Parameters
| Parameter | Description |
|---|---|
field |
Optional. A field name. Empty: JSON. |
Return Value
- JSON or the requested field.
Example
$interactionData[type]
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.