diff options
| author | pokesudenk <thisis@notarealema.il> | 2018-02-24 19:57:05 -0500 |
|---|---|---|
| committer | pokesudenk <thisis@notarealema.il> | 2018-02-24 19:57:05 -0500 |
| commit | f7c9219876840a69ac5e3f3960b464bd273512b5 (patch) | |
| tree | 524696f67bff2481df13f8930ee258ee47ddec5b /commands | |
| parent | e9f85ec2d5ac613950e93674b8f79d8018d08dc9 (diff) | |
| download | PokeBot-f7c9219876840a69ac5e3f3960b464bd273512b5.tar.gz PokeBot-f7c9219876840a69ac5e3f3960b464bd273512b5.tar.bz2 PokeBot-f7c9219876840a69ac5e3f3960b464bd273512b5.zip | |
unrape
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Utility/userinfo.js | 14 |
1 files 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'], |
