From fe53ee3ae33874ebb55fe72e8decfbc0a4ad0185 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 7 Jun 2021 18:10:42 -0400 Subject: [PATCH] Fix reload --- framework/Command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Command.js b/framework/Command.js index 09c54992..70ae60a7 100644 --- a/framework/Command.js +++ b/framework/Command.js @@ -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)); } };