From 2a8c799d7a9ad46f398c5e2feb448140eecbc638 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 17 Aug 2017 01:40:08 -0400 Subject: Official 1.1.0 release! Changelog: New command handler! --- commands/userinfo.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 commands/userinfo.js (limited to 'commands/userinfo.js') diff --git a/commands/userinfo.js b/commands/userinfo.js new file mode 100644 index 0000000..2bb36fe --- /dev/null +++ b/commands/userinfo.js @@ -0,0 +1,12 @@ +const Discord = require('discord.js'); +exports.run = (client, message, args, config) => { + var embed = new Discord.RichEmbed() + .setAuthor(message.author.username, message.author.avatarURL) + .setDescription("Here's your info.") + .addField("Names", "**Username:** " + message.author.username + "\n**Display Name:** " + message.member.displayName) + .addField("Identity", "**User ID:** " + message.author.id + "\n**Discriminator:** " + message.author.discriminator) + .addField("Create and Join Times", "**Created account at:** " + message.member.user.createdAt + "\n**Joined server at:** " + message.member.joinedAt) + .setColor("#7af442") + message.channel.sendEmbed(embed); + +} -- cgit v1.2.3