Hot loading

Is it possible to hot load commands and event handlers?
4 Replies
d.js toolkit
d.js toolkit8mo 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 docs8mo ago
Suggestion for @The Fabulous Geek: :guide: Additional Features: Reloading Commands read more
NyR
NyR8mo 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)
The Fabulous Geek
The Fabulous GeekOP8mo ago
thank you!
Want results from more Discord servers?
Add your server