aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/Utility/userinfo.js44
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',
+};