Fix reload

This commit is contained in:
Dragon Fire
2021-06-07 18:10:42 -04:00
parent 309d4669af
commit fe53ee3ae3
+1 -1
View File
@@ -56,6 +56,6 @@ module.exports = class Command {
delete require.cache[require.resolve(`../commands/${this.groupID}/${this.memberName}.js`)];
const NewCmd = require(`../commands/${this.groupID}/${this.memberName}.js`);
this.client.registry.commands.delete(this.name);
this.client.registry.registerCommand(this.name, new NewCmd(this.client));
this.client.registry.registerCommand(new NewCmd(this.client));
}
};