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
d.js toolkit
d.js toolkit12mo ago
• 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.
Tehirion
Tehirion12mo ago
treble/luna
treble/luna12mo ago
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
Tehirion
Tehirion12mo ago
is there any way to store the cache short term so that if the bot does restart it can retrieve a backup?
Unknown User
Unknown User12mo ago
Message Not Public
Sign In & Join Server To View
Tehirion
Tehirion12mo ago
Not a bad idea, I'll have to take a look at that
Tehirion
Tehirion12mo ago
Speaking of issues, ran an update, got this, did npm audit fix, didnt change anything
treble/luna
treble/luna12mo ago
not djs related
Tehirion
Tehirion12mo ago
okay, thank you