Discord Tools icon

Discord Tools

Discord utility tools - Message fetching, user info, and more

Overview

This node operation fetches a list of active users in a specified Discord channel by counting the number of messages each user has sent in the last 100 messages. It is useful for identifying the most engaged members in a channel, such as for community management or analytics purposes.

Use Case Examples

  1. Identify top contributors in a Discord channel by retrieving active users and their message counts.
  2. Monitor user engagement in a channel to reward or moderate active participants.

Properties

Name Meaning
Guild ID The ID of the Discord server (guild) where the channel is located.
Channel ID The ID of the Discord channel to analyze for active users.
Additional Options Optional parameters to customize the operation, such as including bot messages or filtering messages by ID range. (Note: For this specific operation, additional options are not used.)

Output

JSON

  • id - User ID of the active user.
  • username - Username of the active user.
  • bot - Boolean indicating if the user is a bot.
  • messageCount - Number of messages sent by the user in the last 100 messages of the channel.

Dependencies

  • Discord API accessed via discord.js library

Troubleshooting

  • Ensure the bot token credential is valid and has the necessary permissions to access the guild and channel.
  • Verify that the provided Guild ID and Channel ID are correct and that the channel is text-based.
  • Common error: 'Channel not found' indicates the bot cannot access the channel or the IDs are incorrect.
  • Common error: 'Channel is not text-based' means the operation was attempted on a voice or category channel, which is unsupported.

Links

Discussion