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.
anitrox/commands/userinfo.js

59 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-01-23 01:08:05 -06:00
module.exports = {
name: "userinfo",
2022-03-17 23:11:49 -05:00
description: "Gets info about an user, such as ID, Discord Join date and more",
syntax: "<User>",
2021-01-23 01:08:05 -06:00
execute(client, message, args) {
2022-03-17 23:11:49 -05:00
const {footerTxt} = require('../config.json');
let user = message.mentions.users.first() || args[0]
if (!user) user = message.author
2021-01-23 01:08:05 -06:00
const embed = {
2021-02-06 01:42:55 -06:00
"title": "Everything you've ever wanted to know about " + user.username + "!",
2021-02-06 12:19:07 -06:00
"color": 9442302,
2021-01-23 01:08:05 -06:00
"footer": {
2022-03-17 23:11:49 -05:00
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
2021-01-23 01:08:05 -06:00
},
2021-01-23 01:08:05 -06:00
"thumbnail": {
2021-02-06 01:42:55 -06:00
"url": user.displayAvatarURL()
2021-01-23 01:08:05 -06:00
},
"fields": [
2021-02-06 12:19:07 -06:00
2022-03-17 23:11:49 -05:00
{
"name": "Username",
"value": user.username,
"inline": true
},
{
"name": "Discriminator",
"value": user.discriminator,
"inline": true
},
2021-01-23 01:08:05 -06:00
{
"name": "Full Username",
2022-03-17 23:11:49 -05:00
"value": user.tag,
"inline": true
2021-02-06 01:42:55 -06:00
},
2021-02-06 12:19:07 -06:00
{
"name": "User Profile Picture",
"value": user.displayAvatarURL()
},
2021-02-06 01:42:55 -06:00
{
2022-03-17 23:11:49 -05:00
"name": "User Status",
2021-02-06 01:42:55 -06:00
value: user.presence.status
},
2021-01-23 01:08:05 -06:00
{
"name": "User ID",
2022-03-17 23:47:37 -05:00
"value": "``" + user.id + "``"
2021-01-23 01:08:05 -06:00
},
{
"name": "User Joined Discord",
2021-02-06 01:42:55 -06:00
"value": user.createdAt,
2021-01-23 01:08:05 -06:00
inline: true
},
]
};
message.channel.send({ embed: embed });
2022-03-17 23:11:49 -05:00
}
2021-01-23 01:08:05 -06:00
}