Add buttons to true/false

This commit is contained in:
Dragon Fire
2021-06-07 18:03:00 -04:00
parent c9b71def7b
commit a122250e0c
2 changed files with 20 additions and 15 deletions
+7
View File
@@ -51,4 +51,11 @@ module.exports = class Command {
enable() {
this._enabled = true;
}
reload() {
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));
}
};