fix command handler issue

merge-requests/1/merge
Matthew 2019-10-27 22:38:02 -04:00
parent 663f87debd
commit e0750f7787
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 2 deletions

View File

@ -28,12 +28,12 @@ export default class {
if (resolved.permissions.roles) {
for (const role of resolved.permissions.roles) {
if (message.member && message.member.roles.includes(role)) {
this.client.signale.debug(message.member.roles.includes(role));
// this.client.signale.debug(message.member.roles.includes(role));
hasRolePerms = true; break;
}
}
}
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);
resolved.run(message, args);