Actions32
- Analytics Actions
- Moderation Actions
- Backup Actions
- Automation Actions
- Insights Actions
Overview
This node provides advanced Discord server management tools, including analytics, moderation, backup, automation, and insights. Specifically, the 'Auto-Moderation Report' operation under the 'Moderation' resource generates reports on server moderation activities such as spam detection, duplicate messages, link scanning, mass mentions, and inactive member scans. It is useful for server administrators to monitor and manage user behavior automatically, helping maintain a healthy community environment.
Use Case Examples
- Generate a report on spam messages in a specific channel to identify potential spam content.
- Scan for duplicate messages to detect repeated content that may disrupt conversations.
- Scan messages for URLs to monitor and control link sharing within the server.
- Detect messages with mass mentions to prevent spam or abuse of mentions in channels.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) to analyze or moderate. |
| Time Range (Days) | Number of days to analyze for analytics and moderation reports, ranging from 1 to 30. |
| Additional Options | Collection of optional parameters to customize the moderation report, including whether to include bots, minimum messages for analysis, inclusion of attachments, spam threshold, inactive days to flag users, and maximum items to process. |
Output
JSON
channelId- ID of the channel analyzed (if applicable).totalMessages- Total number of messages analyzed in the channel.spamGroups- Number of groups of spam messages detected.spamMessages- List of spam message groups with content, count, messages, and authors.threshold- Spam threshold used for detection.duplicateCount- Number of duplicate messages found.duplicates- List of duplicate messages with original and duplicate message details.messagesWithLinks- Number of messages containing URLs.totalLinks- Total number of links found in messages.uniqueDomains- Number of unique domains from the links found.domains- List of unique domains extracted from message links.massMentionCount- Number of messages with mass mentions detected.messages- List of messages with mass mentions including mention counts and content snippet.inactiveDays- Number of days used to flag inactive users.totalMembers- Total number of members in the guild.inactiveCount- Number of inactive members detected.inactiveMembers- List of inactive members with user details and roles.
Dependencies
- Discord API with bot token credentials
Troubleshooting
- Ensure the provided Guild ID and Channel ID are correct and the bot has access to these resources.
- The bot must have appropriate permissions to read messages, fetch members, and access channel information.
- If the channel is not text-based, operations requiring message fetching will fail with an error.
- Large servers or channels with many messages may cause rate limiting or timeouts; consider reducing the time range or max limit.
- Errors related to missing permissions or invalid IDs should be resolved by verifying bot roles and IDs.
Links
- discord.js Client Documentation - Official documentation for the Discord.js library used to interact with the Discord API.
- Discord Developer Portal - Official Discord API documentation and developer resources.