aboutsummaryrefslogtreecommitdiff
path: root/commands/Utility/nick.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Utility/nick.js')
-rw-r--r--commands/Utility/nick.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/commands/Utility/nick.js b/commands/Utility/nick.js
index 9701a3c..0d7e79b 100644
--- a/commands/Utility/nick.js
+++ b/commands/Utility/nick.js
@@ -24,15 +24,17 @@ exports.run = async (bot, msg, args) => {
msg.member.setNickname(args.join(' '), 'Requested by bot');
msg.channel.send('Changed nickname to: ' + args.join(' '));
const logChannel = await bot.plugins.settings.getStr('logs', msg.member.guild.id);
- bot.channels.find('id', logChannel).send(
- new RichEmbed()
- .setColor(0x00ae86)
- .setTitle(`Nickname: ${msg.author.tag}`)
- .setDescription(`*${msg.author.tag}* changed their nickname`)
- .addField('New Nickname', msg.member.displayName, true)
- .setTimestamp()
- .setFooter('PokeBot v1.0')
- );
+ setTimeout(() => {
+ bot.channels.find('id', logChannel).send(
+ new RichEmbed()
+ .setColor(0x00ae86)
+ .setTitle(`Nickname: ${msg.author.tag}`)
+ .setDescription(`*${msg.author.tag}* changed their nickname`)
+ .addField('New Nickname', msg.member.displayName, true)
+ .setTimestamp()
+ .setFooter('PokeBot v1.0')
+ );
+ }, 3000);
};