#Hot loading

5 messages · Page 1 of 1 (latest)

jolly pilot
#

Is it possible to hot load commands and event handlers?

raven hedgeBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
spiral axleBOT
#

Suggestion for @jolly pilot:
guide Additional Features: Reloading Commands
read more

native oyster
#

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)