Actions53
- Message Actions
- Channel Actions
- Thread Actions
- Reaction Actions
- Guild (Server) Actions
- Member Actions
- Role Actions
- Voice Actions
- DM Actions
- Webhook Actions
- Invite Actions
Overview
This node interacts with the Discord API to add a reaction (emoji) to a specific message within a Discord channel. It is useful for automating reactions to messages in Discord servers, such as acknowledging messages, expressing emotions, or triggering other bot actions based on reactions.
Use Case Examples
- Automatically add a thumbs-up emoji reaction to a message when a certain event occurs.
- React with a custom emoji to messages in a specific channel to facilitate community engagement.
Properties
| Name | Meaning |
|---|---|
| Channel ID | The ID of the channel containing the message to which the reaction will be added. |
| Message ID | The ID of the message to which the reaction will be added. |
| Emoji | The emoji to react with, which can be a Unicode emoji or a custom emoji ID. |
| Additional Fields | Optional additional parameters that can be set, such as embed JSON, text-to-speech flag, reason for the action, and other Discord-specific settings, though not directly used for the reaction add operation. |
Output
JSON
success- Indicates if the reaction was successfully added.messageId- The ID of the message to which the reaction was added.emoji- The emoji used for the reaction.added- Boolean indicating the reaction was added.
Dependencies
- Discord API
- Bot token credential for authentication
Troubleshooting
- Ensure the Channel ID and Message ID are correct and the channel is text-based, otherwise the node will throw an error 'Channel not found or not text-based'.
- The emoji must be a valid Unicode emoji or a custom emoji ID recognized by the Discord server; invalid emojis will cause the reaction to fail.
- The bot must have permission to add reactions in the specified channel; lack of permissions will result in failure.
- If the bot token is invalid or expired, authentication will fail, preventing the reaction from being added.
Links
- Discord.js Message.react() - Official documentation for adding reactions to messages using discord.js library.
- Discord API Reaction Object - Details about reaction objects in the Discord API.