Add Reaction

discord.add_reaction
ActionChat & messagingconnection required

Calls the Discord API with the connection's credentials.

React to a message as the bot with one emoji.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Discord
Secret shape
the bot token (sent as "Authorization: Bot <token>") for every op except discord.execute_webhook, whose secret is the webhook URL
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
channel_id
Id of the Discord channel (right-click the channel → Copy Channel ID).
stringYes———
message_id
Id of the message to act on (right-click the message → Copy Message ID).
stringYes———
emoji
A unicode emoji such as 👍, or 'name:id' for a custom server emoji.
stringYes———

Output

One shape.

result

FieldTypeExample
ok
True once Discord accepted the call.
booleantrue
message_id
Message the reaction was added to.
string—
channel_id
Channel the message is in.
string—
emoji
The emoji that was added.
string—
{
  "channel_id": "",
  "emoji": "",
  "message_id": "",
  "ok": true
}

Notes

  • Needs a Discord connection whose secret is the bot token.
  • Needs READ_MESSAGE_HISTORY, and ADD_REACTIONS as well when nobody has reacted with this emoji yet.

See Add Reaction run in a workflow.

In a technical demo we add the Discord connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.