diff options
| author | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-11 22:17:35 -0400 |
|---|---|---|
| committer | TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> | 2018-03-11 22:17:35 -0400 |
| commit | 04abe1ecfac0d42d54315e41c9c8f42173205725 (patch) | |
| tree | 3b12ad842e8d9991ee380fdefa25ee0f73217ddc /commands/Moderation/interrogate.js | |
| parent | aa8526d35c25d65c300b535a0bc4ef572335ee4f (diff) | |
| parent | 295b090c3f0254012005a09346873bf40fb34846 (diff) | |
| download | PokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.tar.gz PokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.tar.bz2 PokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.zip | |
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
Diffstat (limited to 'commands/Moderation/interrogate.js')
| -rw-r--r-- | commands/Moderation/interrogate.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/Moderation/interrogate.js b/commands/Moderation/interrogate.js index 1887d57..8fa9708 100644 --- a/commands/Moderation/interrogate.js +++ b/commands/Moderation/interrogate.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 interrogate others. Rip-off detectives...'); if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot interrogate anyone.'); @@ -39,6 +39,7 @@ exports.run = async (bot, msg) => { .addField('Moderator', msg.author.tag) .setTimestamp() .setFooter(`${msg.author.tag} interrogated ${member.user.tag}.`, msg.author.avatarURL); + const logChannel = await bot.plugins.settings.getStr('logs', msg.guild.id); msg.guild.channels.find('id', logChannel).send({ embed }); } catch (err) { |
