Fetch messages from multiple channels
Heya, I need a solution to find active users in a guild, so the base idea is like a command that defines a timestamp like 12h or 24h or 1h, and the bot need to find members that has sent at least one message in the mentioned interval. What's the best solution to prevent rate limits and such?
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPThe "best" solution would be to maintain your own record of the last time users sent messages by listening to events, not relying on fetching
A Collection mapping user id to timestamp, that you can search and filter whenever you like
Thought so, thanks!