Creating an Update Handler
Would it be plausable to create a handler thats job would be to catch any updates such as updating/deleting messages or channels to enable a more consistent logging system for a bot, if so any pointers to files that may help me would be very much appreciated!
9 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.![](https://cdn.answeroverflow.com/1124637950592950383/image.png)
![](https://cdn.answeroverflow.com/1124637950970445894/image.png)
first of all iirc 14.9 has a zombie ws issue so i recommend updating and do know that for events like delete the messages need to be cached to have any functional logs, which means if your bot restarts, your cache is gone
is there any way to store the cache short term so that if the bot does restart it can retrieve a backup?
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Not a bad idea, I'll have to take a look at that
Speaking of issues, ran an update, got this, did npm audit fix, didnt change anything
![](https://cdn.answeroverflow.com/1124640562956480652/image.png)
not djs related
okay, thank you