From f7c9219876840a69ac5e3f3960b464bd273512b5 Mon Sep 17 00:00:00 2001 From: pokesudenk Date: Sat, 24 Feb 2018 19:57:05 -0500 Subject: unrape --- commands/Utility/userinfo.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js index b5dbef7..0ca3985 100644 --- a/commands/Utility/userinfo.js +++ b/commands/Utility/userinfo.js @@ -1,6 +1,14 @@ -exports.run = async (bot, msg, args) => { - const Discord = require('discord.js'); - 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) + ); +}; exports.conf = { aliases: ['uinfo', 'userinformation'], -- cgit v1.2.3