From 9056d09d3c397fc3a64f27cfae3ce06c6a758c16 Mon Sep 17 00:00:00 2001 From: TheEdgeNK <32907415+TheEdgeNK@users.noreply.github.com> Date: Sun, 11 Mar 2018 20:33:17 -0400 Subject: 1.0.1 fixes --- commands/Moderation/ban.js | 2 +- commands/Moderation/interrogate.js | 2 +- commands/Moderation/jail.js | 2 +- commands/Moderation/softban.js | 2 +- commands/Moderation/timeout.js | 2 +- commands/Moderation/warn.js | 2 +- commands/Utility/nick.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'commands') diff --git a/commands/Moderation/ban.js b/commands/Moderation/ban.js index 8c438e3..dbc8fc6 100644 --- a/commands/Moderation/ban.js +++ b/commands/Moderation/ban.js @@ -41,7 +41,7 @@ exports.run = async (bot, msg, args) => { .addField('Moderator', msg.author.tag) .setTimestamp() .setFooter(`${msg.author.tag} banned ${member.user.tag}`, msg.author.avatarURL); - msg.guild.channels.find('name', 'logs').send({ embed }); + msg.guild.channels.find('id', logChannel).send({ embed }); } catch (err) { console.error(err.stack); diff --git a/commands/Moderation/interrogate.js b/commands/Moderation/interrogate.js index d68e68a..1887d57 100644 --- a/commands/Moderation/interrogate.js +++ b/commands/Moderation/interrogate.js @@ -39,7 +39,7 @@ exports.run = async (bot, msg) => { .addField('Moderator', msg.author.tag) .setTimestamp() .setFooter(`${msg.author.tag} interrogated ${member.user.tag}.`, msg.author.avatarURL); - msg.guild.channels.find('name', 'logs').send({ embed }); + msg.guild.channels.find('id', logChannel).send({ embed }); } catch (err) { console.error(err.stack); diff --git a/commands/Moderation/jail.js b/commands/Moderation/jail.js index 80c40a3..4c21b3f 100644 --- a/commands/Moderation/jail.js +++ b/commands/Moderation/jail.js @@ -39,7 +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); - msg.guild.channels.find('name', 'logs').send({ embed }); + msg.guild.channels.find('id', logChannel).send({ embed }); } catch (err) { console.error(err.stack); diff --git a/commands/Moderation/softban.js b/commands/Moderation/softban.js index e7768e5..70cb1b3 100644 --- a/commands/Moderation/softban.js +++ b/commands/Moderation/softban.js @@ -41,7 +41,7 @@ exports.run = async (bot, msg, args) => { .addField('Moderator', msg.author.tag) .setTimestamp() .setFooter(`${msg.author.tag} softbanned ${member.user.tag}`, msg.author.avatarURL); - msg.guild.channels.find('name', 'logs').send({ embed }); + msg.guild.channels.find('id', logChannel).send({ embed }); } catch (err) { console.error(err.stack); diff --git a/commands/Moderation/timeout.js b/commands/Moderation/timeout.js index cc0aa7d..5fabd5f 100644 --- a/commands/Moderation/timeout.js +++ b/commands/Moderation/timeout.js @@ -39,7 +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); - msg.guild.channels.find('name', 'logs').send({ embed }); + msg.guild.channels.find('id', logChannel).send({ embed }); } catch (err) { console.error(err.stack); diff --git a/commands/Moderation/warn.js b/commands/Moderation/warn.js index 76d8013..fc965b7 100644 --- a/commands/Moderation/warn.js +++ b/commands/Moderation/warn.js @@ -40,7 +40,7 @@ exports.run = async (bot, msg, args) => { } const { RichEmbed } = require('discord.js'); - bot.channels.find('name', 'logs').send( + bot.channels.find('id', logChannel).send( new RichEmbed() .setColor(0x00ae86) .setTitle(':warning: Warning') diff --git a/commands/Utility/nick.js b/commands/Utility/nick.js index 8ebc36a..43041b5 100644 --- a/commands/Utility/nick.js +++ b/commands/Utility/nick.js @@ -23,7 +23,7 @@ exports.run = async (bot, msg, args) => { msg.member.setNickname(args.join(' '), 'Requested by bot'); msg.channel.send('Changed nickname to: ' + args.join(' ')); - bot.channels.find('name', 'logs').send( + bot.channels.find('id', logChannel).send( new RichEmbed() .setColor(0x00ae86) .setTitle(`Nickname: ${msg.author.tag}`) -- cgit v1.2.3