Hot loading

Is it possible to hot load commands and event handlers?
4 Replies
d.js toolkit
d.js toolkit•11mo 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! - ✅ Marked as resolved by OP
d.js docs
d.js docs•11mo ago
Suggestion for @The Fabulous Geek: :guide: Additional Features: Reloading Commands read more
NyR
NyR•11mo ago
It's also kinda possible for events, tho would depend on how you have set it up You just remove the previous listeners (so you do not make duplicates) and then clear the files from the cache before reloading and listening again (same concept shown in the guide)
Princess Bri Bri 🦄 🌈
thank you!

Did you find this page helpful?