Actions32
- Analytics Actions
- Moderation Actions
- Backup Actions
- Automation Actions
- Insights Actions
Overview
This node provides advanced analytics and insights for Discord servers (guilds), focusing on the 'Content Breakdown' operation under the 'Insights' resource. It analyzes the types of content shared within a server, such as text messages, images, and links, over a specified time range. This is useful for server administrators who want to understand the composition of their server's activity and engagement patterns. For example, it can help identify the proportion of messages containing attachments or links, aiding in content moderation or community engagement strategies.
Use Case Examples
- Analyzing the distribution of text, image, and link content in a Discord server over the past 7 days.
- Generating a report on the types of content shared to optimize server rules or engagement tactics.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The unique identifier of the Discord server (guild) to analyze. |
| Time Range (Days) | The number of days over which to analyze the content, ranging from 1 to 30 days. |
| Additional Options | Optional parameters to customize the analysis, including whether to include bot activity, minimum messages for analysis, inclusion of attachments, spam threshold, inactive days to flag users, and maximum items to process. |
Output
JSON
guildId- The ID of the Discord server analyzed.timeRange- The number of days over which the content was analyzed.contentTypes- Breakdown of content types such as text messages, images, links, and attachments.totalMessages- Total number of messages analyzed within the specified time range.attachmentCount- Number of messages containing attachments, if included.linkCount- Number of messages containing links, if included.spamMessages- Count of messages flagged as spam based on the spam threshold.inactiveUsers- List or count of users flagged as inactive based on inactivity days.
Dependencies
- Requires a Discord API bot token credential for authentication.
Troubleshooting
- Ensure the provided Guild ID is correct and the bot has access to the guild.
- Verify the bot has permissions to read messages and member data in the guild.
- If the channel or guild data is not found, check that the bot is a member of the guild and has appropriate permissions.
- Large servers or long time ranges may cause rate limiting or timeouts; consider reducing the time range or max limit.
- Errors related to message fetching may occur if the channel is not text-based or if permissions are insufficient.