2022-03-21 10:28:55 -05:00
|
|
|
module.exports = {
|
|
|
|
name: "uinfo",
|
|
|
|
description: "Gets info about an user, such as ID, Discord Join date and more",
|
|
|
|
syntax: "<User>",
|
2022-03-29 13:51:43 -05:00
|
|
|
async execute(client, message, args, config) {
|
2022-03-26 03:33:18 -05:00
|
|
|
const user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author
|
2022-03-26 11:02:17 -05:00
|
|
|
await message.channel.send({embed: {
|
2022-03-26 13:20:32 -05:00
|
|
|
"title": `Everything you've ever wanted to know about ${user.username}!`,
|
2022-03-21 10:28:55 -05:00
|
|
|
"color": 9442302,
|
2022-03-26 12:31:03 -05:00
|
|
|
"footer": {
|
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
2022-03-29 13:51:43 -05:00
|
|
|
"text": config.footerTxt
|
2022-03-26 12:31:03 -05:00
|
|
|
},
|
2022-03-21 10:28:55 -05:00
|
|
|
"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",
|
2022-03-26 13:20:32 -05:00
|
|
|
"value": `\`${user.id}\``
|
2022-03-21 10:28:55 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "User Joined Discord",
|
|
|
|
"value": user.createdAt,
|
|
|
|
inline: true
|
|
|
|
},
|
|
|
|
]
|
2022-03-26 11:02:17 -05:00
|
|
|
}});
|
2022-03-21 10:28:55 -05:00
|
|
|
}
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|