Actions32
- Analytics Actions
- Moderation Actions
- Backup Actions
- Automation Actions
- Insights Actions
Overview
This node provides advanced analytics for Discord servers, specifically focusing on identifying peak activity times within a guild. It analyzes message activity across all text-based channels over a specified time range, optionally including or excluding bot messages. The node aggregates message counts by hour of the day and day of the week to determine the peak hour and peak day of activity. This is useful for server administrators to understand when their community is most active, enabling better scheduling of events or announcements.
Use Case Examples
- A Discord server admin wants to find out the busiest hours and days in their server over the past week to schedule community events.
- A community manager wants to analyze message activity trends to optimize posting times for announcements.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) to analyze. |
| Time Range (Days) | Number of days to analyze message activity, ranging from 1 to 30 days. |
| Additional Options | Optional settings to customize the analysis, including whether to include bot messages, 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 analyzed Discord guild.peakHour- The hour of the day with the highest message activity, formatted as 'HH:00 (message count)'.peakDay- The day of the week with the highest message activity, formatted as 'Day (message count)'.hourlyDistribution- An object mapping each hour of the day (0-23) to the number of messages sent during that hour.dailyDistribution- An object mapping each day of the week to the number of messages sent on that day.
Dependencies
- Discord API with bot token 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 in the channels to be analyzed.
- If the channel is not text-based or does not exist, the node will throw an error.
- Large servers with many messages may hit rate limits or take longer to process; consider adjusting the maxLimit option.
Links
- Discord Developer Documentation - Official documentation for Discord API and bot development.