From 1af63e8d2101a89f4e8dad9431935aa12b196028 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Wed, 20 Jan 2021 21:18:20 -0600 Subject: [PATCH] Add userinfo.js --- commands/userinfo.js | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 commands/userinfo.js diff --git a/commands/userinfo.js b/commands/userinfo.js new file mode 100644 index 0000000..42ddd99 --- /dev/null +++ b/commands/userinfo.js @@ -0,0 +1,52 @@ +const { User } = require("discord.js"); + +module.exports = { + + name: 'userinfo', + description: 'Shows information about you or another user.', + execute(client, message, args) { + const taggedUser = message.mentions.users.first(); + + + //Actual code + const embed = { + "title": "<:userinfo:793885335498522685> **User Information**", + "description": "Everything you've ever wanted to know about **" + taggedUser.username + ("!**"), + "color": 11038194, + + "footer": { + "icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png", + "text": "Anitrox © IDeletedSystem64 2018-2021. All Rights Reserved" + }, + "thumbnail": { + "url": taggedUser.displayAvatarURL({ dynamic: true }) + }, + "fields": [ + { + "name": "<:userquestion:793984046912110633> **Full Username**", + "value": taggedUser.username + ("#") + taggedUser.discriminator + }, + { + "name": "<:userquestion:793984046912110633> User Status", + "value": taggedUser.status, + "value": taggedUser.presence + }, + { + "name": "<:userquestion:793984046912110633> User ID", + "value": taggedUser.id + }, + { + "name": "<:userquestion:793984046912110633> User Joined Discord", + "value": taggedUser.CreatedAt, + "inline": true + }, + { + "name": "<:userquestion:793984046912110633> User Joined Server", + "value": "tba", + "inline": true + } + ] + }; + message.channel.send({ embed }); + } + }; \ No newline at end of file