aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/interrogate.js
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-11 20:37:36 -0400
committerUnknown <jtsshieh@outlook.com>2018-03-11 20:37:36 -0400
commit908bec2e72fec62c2d02d176192c057dccb82518 (patch)
tree9d89dfdb7eae872150e8d175ef1c22a27fcdc03e /commands/Moderation/interrogate.js
parent37e53964eb1a2177b0b80b22f87f7c3c49ff200e (diff)
downloadPokeBot-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/interrogate.js')
-rw-r--r--commands/Moderation/interrogate.js3
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) {