diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-11 20:37:36 -0400 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-11 20:37:36 -0400 |
| commit | 908bec2e72fec62c2d02d176192c057dccb82518 (patch) | |
| tree | 9d89dfdb7eae872150e8d175ef1c22a27fcdc03e /commands/Moderation/jail.js | |
| parent | 37e53964eb1a2177b0b80b22f87f7c3c49ff200e (diff) | |
| download | PokeBot-1.0.1.tar.gz PokeBot-1.0.1.tar.bz2 PokeBot-1.0.1.zip | |
trey is dumb1.0.1
Diffstat (limited to 'commands/Moderation/jail.js')
| -rw-r--r-- | commands/Moderation/jail.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/Moderation/jail.js b/commands/Moderation/jail.js index 4c21b3f..9923540 100644 --- a/commands/Moderation/jail.js +++ b/commands/Moderation/jail.js @@ -20,7 +20,7 @@ exports.run = async (bot, msg) => { if (msg.guild.id != '417088992329334792') return msg.reply ('This is a PokeWorld exclusive command. Sorry!'); - + if (!msg.member.hasPermission('BAN_MEMBERS')) return msg.reply('You don\'t have permission to put members in jail.'); if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot put anyone in jail.'); @@ -39,6 +39,7 @@ exports.run = async (bot, msg) => { .addField('Moderator', msg.author.tag) .setTimestamp() .setFooter(`${msg.author.tag} put ${member.user.tag} in jail.`, msg.author.avatarURL); + const logChannel = await bot.plugins.settings.getStr('logs', msg.guild.id); msg.guild.channels.find('id', logChannel).send({ embed }); } catch (err) { |
