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

View File

@ -16,6 +16,7 @@ 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;