aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/timeout.js
diff options
context:
space:
mode:
authorTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-11 22:17:35 -0400
committerTheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com>2018-03-11 22:17:35 -0400
commit04abe1ecfac0d42d54315e41c9c8f42173205725 (patch)
tree3b12ad842e8d9991ee380fdefa25ee0f73217ddc /commands/Moderation/timeout.js
parentaa8526d35c25d65c300b535a0bc4ef572335ee4f (diff)
parent295b090c3f0254012005a09346873bf40fb34846 (diff)
downloadPokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.tar.gz
PokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.tar.bz2
PokeBot-04abe1ecfac0d42d54315e41c9c8f42173205725.zip
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
Diffstat (limited to 'commands/Moderation/timeout.js')
-rw-r--r--commands/Moderation/timeout.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js
index 5fabd5f..af9c713 100644
--- a/commands/Moderation/timeout.js
+++ b/commands/Moderation/timeout.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 time-out..');
if (!msg.guild.member(bot.user).hasPermission('MANAGE_ROLES')) return msg.reply('I cannot put anyone in time-out.');
@@ -39,6 +39,7 @@ exports.run = async (bot, msg) => {
.addField('Moderator', msg.author.tag)
.setTimestamp()
.setFooter(`${msg.author.tag} put ${member.user.tag} in time-out.`, msg.author.avatarURL);
+ const logChannel = await bot.plugins.settings.getStr('logs', msg.guild.id);
msg.guild.channels.find('id', logChannel).send({ embed });
}
catch (err) {