retrieve all messages from a user
Hello, I wanted to know if it was possible to retrieve all the messages that a user has sent in a Channel, which are not necessarily in the bot cache. I've already tried fetching by 100, but it's way too long and makes too many API calls, so is there another way ?
5 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 staffNo
Besides storing all messages in a db when you receive it in messageCreate and querying from there
It's a shame that there is no way to do this, especially since with our user account, when we search for a message we get the total number of messages sent.
Discord has user privacy and security in mind with limits such as these
I see 🤔