forked from engineering/cloudservices
please
parent
8bcd610462
commit
301f9ff9a2
|
@ -16,6 +16,7 @@ export default class {
|
||||||
const noPrefix: string[] = message.content.slice(this.client.config.prefix.length).trim().split(/ +/g);
|
const noPrefix: string[] = message.content.slice(this.client.config.prefix.length).trim().split(/ +/g);
|
||||||
const command: string = noPrefix[0].toLowerCase();
|
const command: string = noPrefix[0].toLowerCase();
|
||||||
const resolved: Command = this.client.util.resolveCommand(command);
|
const resolved: Command = this.client.util.resolveCommand(command);
|
||||||
|
this.client.signale.debug(resolved);
|
||||||
if (!resolved) return;
|
if (!resolved) return;
|
||||||
if (resolved.guildOnly && !(message.channel instanceof TextChannel)) return;
|
if (resolved.guildOnly && !(message.channel instanceof TextChannel)) return;
|
||||||
let hasUserPerms: boolean;
|
let hasUserPerms: boolean;
|
||||||
|
|
Loading…
Reference in New Issue