Build chat bots with blocks

custom ID of interaction (interaction)

In Discord → Interactions

Jump to block

Get the custom ID of this interaction.

Requires the following blocks to be present in the project: discord login


Parameter name Parameter type Required? Description
interaction interaction The interaction to get the ID of.


String - The custom ID of this interaction, or empty string if not found. Use this to determine the source of an interaction.