aboutsummaryrefslogtreecommitdiff
path: root/commands/Utility/userinfo.js
blob: bdcb6614f1263ad0604a476aebe14ab357017a1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
exports.run = async (bot, msg, args) => {
    const user = msg.mentions.members.first();

    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',
  };