diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 20:27:58 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 20:27:58 -0500 |
| commit | 85f4ec00efb5c90cc2408e5bcc96bf01e3de2a10 (patch) | |
| tree | 02e07422a4347a078effb9648731b2f60def1361 /commands/Utility/userinfo.js | |
| parent | 089974a6a78bb425db8ebd18de6855a294b88295 (diff) | |
| download | PokeBot-85f4ec00efb5c90cc2408e5bcc96bf01e3de2a10.tar.gz PokeBot-85f4ec00efb5c90cc2408e5bcc96bf01e3de2a10.tar.bz2 PokeBot-85f4ec00efb5c90cc2408e5bcc96bf01e3de2a10.zip | |
FIXY FIXY
Diffstat (limited to 'commands/Utility/userinfo.js')
| -rw-r--r-- | commands/Utility/userinfo.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js index b19339d..f834e2f 100644 --- a/commands/Utility/userinfo.js +++ b/commands/Utility/userinfo.js @@ -1,19 +1,19 @@ exports.run = async (bot, msg) => { - const { RichEmbed } = require('discord.js'); - const { mentions } = require('discord.js'); - if (!mentions) { - var user = msg.author; - } else { - var user = msg.mentions.members.first(); - }; - 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 + `\nUsername: ${user.user.tag}`) + const { RichEmbed } = require('discord.js'); + let user; + if (!msg.mentions.members.first()) { + user = msg.author; + } else { + user = msg.mentions.members.first(); + } + 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 + `\nUsername: ${user.user.tag}`) ); }; |
