Stopped command from triggering if command is disabled

merge-requests/1/merge
Bsian 2019-10-15 23:41:29 +01:00
parent 4b4410caf9
commit ce01f5d290
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export default class {
} }
} }
if (!hasRolePerms && !hasUserPerms) return; if (!hasRolePerms && !hasUserPerms) return;
if (!resolved.enabled) { message.channel.createMessage(`***${this.client.stores.emojis.error} This command has been disabled***`); return; }
const args: string[] = noPrefix.slice(1); const args: string[] = noPrefix.slice(1);
resolved.run(message, args); resolved.run(message, args);
} }