Plugin to reload my bot on code changes without relogging to discord. When I change the text in an embed for example and hmr reloads my changes, they are displayed correctly in discord with the new text. If you change console logs, add
container.logger.info(xyz)
container.logger.info(xyz)
or edit helper files, the changes there are not reflected correctly with the latest changes.
If I want to see the changes I have to stop the dev process and restart the bot completely. Is this wanted behavior or am I doing something wrong?
Solution
This is expected behavior. @sapphire/plugin-hmr only handles "piece" files (commands, listeners, preconditions, etc)