Adding old messages to the cache and making them listen for events like messageReactionAdd
Is this possible? I tried to add manually
channel.messages.cache.set(id, message)
but it didn't work.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!dont manually mutate cache
Use partials if you want to receive events from uncached messages
There is even page: https://discordjs.guide/popular-topics/reactions.html#listening-for-reactions-on-old-messages xd
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Thank you, I'll look into