diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 19:54:10 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 19:54:10 -0500 |
| commit | 3d56a3964fdd7ce3258475f04693a6ca92a41b34 (patch) | |
| tree | 524696f67bff2481df13f8930ee258ee47ddec5b | |
| parent | f3fbfe2eb4ac59a9966659d0257f43be55e648f5 (diff) | |
| download | PokeBot-3d56a3964fdd7ce3258475f04693a6ca92a41b34.tar.gz PokeBot-3d56a3964fdd7ce3258475f04693a6ca92a41b34.tar.bz2 PokeBot-3d56a3964fdd7ce3258475f04693a6ca92a41b34.zip | |
fix the trey error
| -rw-r--r-- | commands/Utility/userinfo.js | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js index bdcb661..0ca3985 100644 --- a/commands/Utility/userinfo.js +++ b/commands/Utility/userinfo.js @@ -1,24 +1,22 @@ -exports.run = async (bot, msg, args) => { - const user = msg.mentions.members.first(); +exports.run = async (bot, msg) => { + const user = msg.mentions.members.first(); + const { RichEmbed } = require('discord.js'); + msg.channel.send( + new RichEmbed() + .setTitle(`Information for ${user.user.tag}`) + .addField('User ID', user.id) + .addField('Account Creation Date', user.user.createdAt) + .addField('Join Guild Date', user.joinedAt) + ); +}; - msg.channel.send( - new RichEmbed() - .setTitle(`Information for ${user.user.tag}`) - .addField('User ID', user.id) - .addField('Account Creation Date', member.user.createdAt) - .addField('Join Guild Date', user.joinedAt) - .addField('Ban Count', 'This user has been banned from ' + parseInt(banCounts[user.id]) + ' guilds.') - ); - }; - - exports.conf = { - aliases: ['uinfo', 'userinformation'], - guildOnly: true, - }; - - exports.help = { - name: 'userinfo', - description: 'Shows information about the mentioned user', - usage: '@user', - }; -
\ No newline at end of file +exports.conf = { + aliases: ['uinfo', 'userinformation'], + guildOnly: true, +}; + +exports.help = { + name: 'userinfo', + description: 'Shows information about the mentioned user', + usage: '@user', +}; |
