Skip to content

$interactionData

$interactionData will return given arguments of an interaction.

Usage

$interactionData[data]

Parameters

FieldTypeDescriptionRequired
datastringData to retrieve.true

Example(s)

$interactionData[customId]
// returns the custom ID of the interaction.
$interactionData[author.id]
// returns the author ID of the interaction.
$interactionData[message.id]
// returns the message ID of the interaction.
$interactionData[channel.id]
// returns the channel ID of the interaction.

That are just a few example, there are a lot more.