From 3d56a3964fdd7ce3258475f04693a6ca92a41b34 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 19:54:10 -0500 Subject: fix the trey error --- commands/Utility/userinfo.js | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'commands/Utility/userinfo.js') 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', +}; -- cgit v1.2.3