Actions32
- Messages Actions
- Channels Actions
- Guilds Actions
- Users Actions
- Webhooks Actions
Messages → Add Reaction
AI-generatedOverview
The "Add Reaction" operation in the Messages resource allows users to add an emoji reaction to a specific message within a Discord channel. This is useful for automating engagement or feedback on messages, such as acknowledging receipt, voting, or expressing emotions without sending additional text messages.
Practical examples include:
- Automatically reacting with a thumbs-up emoji when a bot posts an announcement.
- Adding custom emoji reactions to user messages based on certain triggers or commands.
- Enhancing community interaction by programmatically adding reactions to messages in moderation workflows.
Properties
| Name | Meaning |
|---|---|
| Channel ID | The unique identifier of the Discord channel where the target message is located. |
| Message ID | The unique identifier of the message to which the reaction will be added. |
| Emoji | The emoji to add as a reaction. It can be specified using either the :emoji: format or Unicode characters. |
Output
The node outputs a JSON object representing the result of the add reaction API call. This typically includes confirmation details about the reaction added or the updated message state. The exact structure depends on the Discord API response but generally confirms success or provides error information.
No binary data output is involved in this operation.
Dependencies
- Requires a valid API key credential for the external service (referred to generically as "an API key credential") to authenticate requests.
- The node uses the N8N Tools API endpoint for validation before performing operations.
- Proper configuration of the Discord API access through the node's credentials is necessary.
- Network connectivity to Discord's API endpoints is required.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
- Permission Errors: Adding reactions requires the bot or authenticated user to have appropriate permissions in the target channel. Ensure the bot has "Add Reactions" permission.
- Incorrect IDs: Using wrong or malformed Channel ID or Message ID will cause failures. Double-check these identifiers.
- Emoji Format Issues: The emoji must be provided in the correct format (
:emoji:or Unicode). Invalid emoji strings may cause errors. - Rate Limits: Discord enforces rate limits on API calls. Excessive rapid calls might lead to temporary blocking; implement delays if needed.