1
0
Fork 0

fix command handler issue

refactor/models
Matthew 2019-10-27 22:27:03 -04:00
parent 98fdd4f8ab
commit 8a6b6de78f
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 0 additions and 1 deletions

View File

@ -16,7 +16,6 @@ export default class {
const noPrefix: string[] = message.content.slice(this.client.config.prefix.length).trim().split(/ +/g);
const command: string = noPrefix[0].toLowerCase();
const resolved: Command = this.client.util.resolveCommand(command);
this.client.signale.debug(resolved);
if (!resolved) return;
if (resolved.guildOnly && !(message.channel instanceof TextChannel)) return;
let hasUserPerms: boolean;