Actions32
- Analytics Actions
- Moderation Actions
- Backup Actions
- Automation Actions
- Insights Actions
Overview
This node provides advanced Discord server management tools, focusing on analytics, moderation, backup, automation, and insights. Specifically, the 'Find Duplicate Messages' operation under the 'Moderation' resource scans a specified Discord channel to identify duplicate or repeated messages. It fetches recent messages from the channel, compares their content, and returns details about duplicates including original and duplicate message metadata. This is useful for moderators to detect repeated spam or repeated content in channels, helping maintain chat quality and reduce clutter.
Use Case Examples
- A moderator wants to find repeated messages in a channel to identify spam or repeated announcements.
- A server admin wants to analyze message duplication patterns to improve moderation rules.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) where the operation is performed. |
| Channel ID | The ID of the specific channel within the guild to analyze for duplicate messages. |
| Time Range (Days) | Number of days to analyze messages for duplicates (not directly used in this operation but available in the node). |
| Additional Options | Collection of optional parameters such as including bots, minimum messages, attachment inclusion, spam threshold, inactive days, and max limit for processing. |
Output
JSON
channelId- The ID of the channel analyzed.totalMessages- Total number of messages fetched from the channel.duplicateCount- Number of duplicate message groups found.duplicates- Array of duplicate message objects, each containing the original message and its duplicate with metadata such as message ID, author username, author ID, timestamp, and content.
Dependencies
- Discord API with a bot token credential
Troubleshooting
- Ensure the provided Guild ID and Channel ID are correct and the bot has permissions to read messages in the channel.
- The channel must be text-based; otherwise, the node will throw an error indicating the channel is not found or not text-based.
- If the bot token credential is invalid or lacks necessary permissions, authentication or permission errors may occur.
- Fetching messages is limited to the most recent 100 messages due to Discord API constraints; duplicates outside this range won't be detected.