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
d.js toolkit
d.js toolkit3d ago
- 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!
treble/luna
treble/luna3d ago
dont manually mutate cache Use partials if you want to receive events from uncached messages
d.js docs
d.js docs3d ago
:guide: Popular Topics: Partial Structures read more
requizm
requizmOP3d ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
requizm
requizmOP3d ago
Thank you, I'll look into

Did you find this page helpful?