check for user perms in message create
parent
3233e99a0e
commit
14711de6de
|
@ -18,6 +18,7 @@ export default class {
|
|||
if (!resolved) return;
|
||||
if (resolved.cmd.guildOnly && !(message.channel instanceof TextChannel)) return;
|
||||
if (!resolved.cmd.enabled) { message.channel.createMessage(`***${this.client.util.emojis.ERROR} This command has been disabled***`); return; }
|
||||
if (!resolved.cmd.checkPermissions(message.member)) return;
|
||||
this.client.util.signale.info(`User '${message.author.username}#${message.author.discriminator}' ran command '${resolved.cmd.name}' in '${message.channel.id}'.`);
|
||||
await resolved.cmd.run(message, resolved.args);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in New Issue