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 toolkit2y 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
TehirionOP2y ago
treble/luna
treble/luna2y 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
TehirionOP2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Tehirion
TehirionOP2y ago
Not a bad idea, I'll have to take a look at that
Tehirion
TehirionOP2y ago
Speaking of issues, ran an update, got this, did npm audit fix, didnt change anything
treble/luna
treble/luna2y ago
not djs related
Tehirion
TehirionOP2y ago
okay, thank you
Want results from more Discord servers?
Add your server