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 'Detect Spam Messages' operation under the 'Moderation' resource identifies potential spam messages in a specified Discord channel by analyzing recent messages and grouping similar ones that exceed a defined spam threshold. This is useful for server moderators to automatically flag and review spammy content, helping maintain community quality and reduce unwanted repetitive messages.
Use Case Examples
- A server moderator uses this node to scan a channel for spam messages posted multiple times by users, enabling quick identification and removal of spam.
- A community manager sets the spam threshold to 5 and runs the node to detect any message repeated 5 or more times in the last 100 messages, helping to keep the chat clean.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) to analyze or moderate. |
| Channel ID | The ID of the specific channel within the guild to scan for spam messages. |
| Time Range (Days) | Number of days to analyze messages (used in some operations, not specifically in spam detection). |
| Additional Options | Collection of optional parameters to customize the spam detection and other moderation behaviors. |
Output
JSON
channelId- ID of the channel analyzed for spam.totalMessages- Total number of messages fetched and analyzed.spamGroups- Number of groups of messages identified as spam.spamMessages- Array of spam message groups, each containing the repeated content, count, individual messages, and unique authors.threshold- The spam threshold number used to flag messages.
Dependencies
- Discord API access via a bot token credential
Troubleshooting
- Ensure the provided Guild ID and Channel ID are correct and the channel is text-based; otherwise, the node will throw an error 'Channel not found or not text-based'.
- The node fetches up to 100 recent messages for analysis; if spam messages are older or beyond this limit, they won't be detected.
- If the bot token credential is invalid or lacks necessary permissions (e.g., reading messages), the node will fail to fetch data.
- Adjust the 'Spam Threshold' parameter to balance sensitivity; too low may flag normal repeated messages, too high may miss spam.