Userinfo has been rewritten!

This commit is contained in:
Andrew Lee 2017-08-16 00:00:59 -04:00
parent b6431a3e20
commit 7c037cfe31

View file

@ -186,12 +186,13 @@ commandProcessed = true;
if(command === 'userinfo'){ if(command === 'userinfo'){
var embed = new Discord.RichEmbed() var embed = new Discord.RichEmbed()
.setAuthor(message.author.username) .setAuthor(message.author.username, message.author.avatarURL)
.setDescription("This is your user info!") .setDescription("Here's some information about your user.")
.setColor("#7af442") .addField("Names", "**Username:** " + message.author.username + "\n**Display Name:** " + message.member.displayName)
.addField("Username", `${message.author.username}#${message.author.discriminator}`) .addField("Identity", "**User ID:** " + message.author.id + "\n**Discriminator:** " + message.author.discriminator)
.addField("Created At", message.author.createdAt) .addField("Create and Join Times", "**Created account at:** " + message.member.user.createdAt + "\n**Joined server at:** " + message.member.joinedAt)
message.channel.sendEmbed(embed); .setColor("#7af442")
message.channel.sendEmbed(embed);
} }