From 17969f62a81cf5c032ce81688ff42d7e60926ea7 Mon Sep 17 00:00:00 2001 From: Sophie Mondz Date: Mon, 21 Mar 2022 10:28:55 -0500 Subject: [PATCH] Rename userinfo to uinfo --- commands/uinfo.js | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 commands/uinfo.js diff --git a/commands/uinfo.js b/commands/uinfo.js new file mode 100644 index 0000000..0cb944f --- /dev/null +++ b/commands/uinfo.js @@ -0,0 +1,58 @@ +module.exports = { + name: "uinfo", + description: "Gets info about an user, such as ID, Discord Join date and more", + syntax: "", + execute(client, message, args) { + const {footerTxt} = require('../config.json'); + let user = message.mentions.users.first() || args[0] + if (!user) user = message.author + const embed = { + "title": "Everything you've ever wanted to know about " + user.username + "!", + "color": 9442302, + "footer": { + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt + }, + + "thumbnail": { + "url": user.displayAvatarURL() + }, + "fields": [ + + { + "name": "Username", + "value": user.username, + "inline": true + }, + { + "name": "Discriminator", + "value": user.discriminator, + "inline": true + }, + { + "name": "Full Username", + "value": user.tag, + "inline": true + }, + { + "name": "User Profile Picture", + "value": user.displayAvatarURL() + }, + { + "name": "User Status", + value: user.presence.status + }, + { + "name": "User ID", + "value": "``" + user.id + "``" + }, + { + "name": "User Joined Discord", + "value": user.createdAt, + inline: true + }, + ] + }; + message.channel.send({ embed: embed }); + } + }