diff options
| author | Trey <trey6979@gmail.com> | 2018-04-06 13:37:19 -0400 |
|---|---|---|
| committer | Trey <trey6979@gmail.com> | 2018-04-06 13:37:19 -0400 |
| commit | b85b686829798f29f5f19fe919ae8807ef9ad69c (patch) | |
| tree | 86fa324fb3f62971aba7b556e91274f3a8f50c11 /commands/Utility/nick.js | |
| parent | 2622255cd43f787c37951cbc9b70168b433f32ad (diff) | |
| download | PokeBot-b85b686829798f29f5f19fe919ae8807ef9ad69c.tar.gz PokeBot-b85b686829798f29f5f19fe919ae8807ef9ad69c.tar.bz2 PokeBot-b85b686829798f29f5f19fe919ae8807ef9ad69c.zip | |
nick bug
Diffstat (limited to 'commands/Utility/nick.js')
| -rw-r--r-- | commands/Utility/nick.js | 20 |
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); }; |
