From 29b061eaa6a26ce99d8064e567d97c9cf0534863 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 29 Oct 2019 16:01:21 -0400 Subject: [PATCH] perms --- src/commands/cwg.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/cwg.ts b/src/commands/cwg.ts index 86121c0..a6ea69e 100644 --- a/src/commands/cwg.ts +++ b/src/commands/cwg.ts @@ -13,7 +13,7 @@ export default class CWG extends Command { this.name = 'cwg'; this.description = 'Manages aspects for the CWG.'; this.usage = `${this.client.config.prefix}cwg create [User ID/Username] [Domain] [Port] \n${this.client.config.prefix}cwg data [Domain/Port]`; - this.permissions = { roles: ['525441307037007902'] }; + this.permissions = { roles: ['446104438969466890'] }; this.enabled = true; } @@ -30,6 +30,7 @@ export default class CWG extends Command { if (args[0] === 'create') { if (!args[3]) return this.client.commands.get('help').run(message, [this.name]); try { + if (!message.member.roles.includes('525441307037007902')) return; // eslint-disable-line const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Binding domain...`); const account = await this.client.db.Account.findOne({ $or: [{ account: args[1] }, { userID: args[1] }] }); if (!account) return edit.edit(`${this.client.stores.emojis.error} Cannot locate account, please try again.`);