mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix reload
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user