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 perform various operations related to Discord messages, specifically for the 'React' operation on messages. It allows users to add reactions (emojis) to messages in specified channels. This is useful for automating responses, acknowledgments, or feedback on messages within Discord channels, such as reacting with a thumbs-up emoji to confirm receipt or agreement.
Use Case Examples
- Automatically add a reaction emoji to a message when a certain event occurs in a workflow.
- React to a message with a custom emoji to trigger further actions or notifications.
Properties
| Name | Meaning |
|---|---|
| Channel ID | The ID of the Discord channel containing the message to react to. |
| Message ID | The ID of the message to which the reaction will be added. |
| Additional Fields | Optional fields including the emoji to react with (default is 👍). |
Output
JSON
success- Indicates if the reaction was successfully added (true/false).messageId- The ID of the message that was reacted to.emoji- The emoji used for the reaction.
Dependencies
- Discord API accessed via a bot token credential
Troubleshooting
- Ensure the bot token credential is valid and has permissions to read messages and add reactions in the specified channel.
- Verify that the Channel ID and Message ID are correct and that the message exists in the channel.
- If using a custom emoji, ensure the emoji ID is correct and the bot has access to use it.
- Common errors include 'Channel not found or not text-based' if the channel ID is invalid or the channel is not a text channel, and permission errors if the bot lacks required permissions.
Links
- Discord.js Message.react() Method - Official documentation for adding reactions to messages using discord.js library.