This repository has been archived on 2024-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
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-25 23:48:29 -05:00
|
|
|
execute(client, message, args, footerTxt) {
|
|
|
|
console.log(args[0])
|
|
|
|
let user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author
|
|
|
|
// if (!user) user = message.author
|
2022-03-21 10:28:55 -05:00
|
|
|
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 });
|
|
|
|
}
|
|
|
|
}
|