discord / trigger / schema v1
Discord: Reaction
Trigger when a reaction is added to or removed from a message
Prerequisites
- Add the discord plugin inside this workflow.
- Connect and authorize a discord account before running this node.
Parameters
| Parameter | Type | Description |
|---|---|---|
ServerguildId | discord_guild Required | The Discord server this trigger watches. Your bot must be a member of it. |
Channel FilterchannelId | discord_channel Optional | Optional. Empty = reactions in EVERY channel the bot can see fire the trigger. Pick channels to limit it. |
Emoji FilteremojiFilter | tags Optional | Optional. Empty = any emoji fires the trigger. List emojis to only react to those. E.g. ✅ for a verification message. |
Message FiltermessageIdFilter | tags Optional | Optional. Paste message IDs to only watch reactions on those specific messages. The classic reaction-roles setup. Empty = reactions on any message count. |
Inputs and outputs
Inputs
No ports declared.
Outputs
on_reaction_add- Reaction Added (output)on_reaction_remove- Reaction Removed (output)event- Event ("add"/"remove") (output)emoji- Emoji (output)emoji_id- Custom Emoji ID (output)is_custom- Is Custom Emoji (output)user_id- User ID (output)username- Username (output)user_avatar- User Avatar URL (output)message_id- Message ID (output)channel_id- Channel ID (output)guild_id- Server ID (output)count- Total Reaction Count (output)timestamp- Timestamp (output)
Output data schema
[
{
"key": "event",
"type": "string",
"label": "Event (\"add\"/\"remove\")"
},
{
"key": "emoji",
"type": "string",
"label": "Emoji"
},
{
"key": "emoji_id",
"type": "snowflake",
"label": "Custom Emoji ID",
"description": "Empty for a standard Unicode emoji"
},
{
"key": "is_custom",
"type": "boolean",
"label": "Is Custom Emoji"
},
{
"key": "user_id",
"type": "user",
"label": "User ID",
"bindingRole": "actor"
},
{
"key": "username",
"type": "string",
"label": "Username",
"bindingRole": "actor"
},
{
"key": "user_avatar",
"type": "url",
"label": "User Avatar URL"
},
{
"key": "message_id",
"type": "snowflake",
"label": "Message ID",
"bindingRole": "event_subject"
},
{
"key": "channel_id",
"type": "channel",
"label": "Channel ID",
"bindingRole": "current_context"
},
{
"key": "guild_id",
"type": "guild",
"label": "Server ID",
"bindingRole": "current_context"
},
{
"key": "count",
"type": "number",
"label": "Total Reaction Count",
"description": "The message's current count of this emoji"
},
{
"key": "timestamp",
"type": "timestamp",
"label": "Timestamp"
}
]Examples and troubleshooting have not yet been reviewed for this contract.
Version and compatibility
This reference follows the current authoring contract. Existing workflows retain their saved node revisions.
Contract identifier
58350e501725d3da5c95c00971a41485523473f1a1f3d8e79b9e6f4d5eb6d081