Hot loading
Is it possible to hot load commands and event handlers?
4 Replies
- 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 OPIt'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)
thank you!