This commit is contained in:
Dragon Fire
2024-05-01 23:35:34 -04:00
parent 447557622c
commit 78aed1eca0
14 changed files with 75 additions and 75 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class EnableCommand extends Command {
async run(msg, { command }) {
if (command._enabled) return msg.say(`The \`${command.name}\` command is already enabled.`);
command.enable();
await this.client.redis.hdel('disabled', command.name);
await this.client.redis.db.hdel('disabled', command.name);
return msg.say(`Enabled the \`${command.name}\` command.`);
}
};