aboutsummaryrefslogtreecommitdiff
path: root/commands/Utility/userinfo.js
blob: f9bf25fb5870305caaf4d6734514aad0e2541c99 (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) => {
  const user = msg.mentions.members.first();
  const { RichEmbed } = require('discord.js');
  msg.channel.send(
    new RichEmbed()
      .setColor(0x00ae86)
      .setTitle(`User Information`)
      .addField('User ID', user.id)
      .addField('Account Creation Date', user.user.createdAt)
      .addField('Join Guild Date', user.joinedAt)
      .addField('Names', 'Display Name: ' + user.displayName + `Username: ${user.user.tag}`)
  );
};

exports.conf = {
  aliases: ['uinfo', 'userinformation'],
  guildOnly: true,
};

exports.help = {
  name: 'userinfo',
  description: 'Shows information about the mentioned user',
  usage: '@user',
};