aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/interrogate.js
diff options
context:
space:
mode:
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) {