Get Interaction Message Data

BlockInteractions

Get message, channel, and server data from an interaction response.

Inputs

Interaction TokenRequired

Token/secret of the interaction to inspect.

Outputs

Message ID

ID of the interaction response message.

Example: 123456789012345678

Channel ID

ID of the channel containing the interaction response message.

Example: 123456789012345678

Server ID

ID of the server containing the interaction response message. Empty in DMs.

Example: 123456789012345678

Build a bot using blocks like Get Interaction Message Data

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: get_interaction_message_data

Inputs

FieldInventScript nameValue
Interaction Tokeninteraction_token

Outputs

FieldInventScript nameValue
Message IDmessage_ide.g. "123456789012345678"
Channel IDchannel_ide.g. "123456789012345678"
Server IDserver_ide.g. "123456789012345678"

Example InventScript

interactionMessageData := get_interaction_message_data(Args{interaction_token: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Message ID: " + interactionMessageData.message_id,
})

More interactions blocks