2022-03-21 10:28:55 -05:00
|
|
|
module.exports = {
|
2022-04-18 11:25:40 -05:00
|
|
|
|
|
|
|
name: require('path').parse(__filename).name,
|
2022-04-21 18:09:21 -05:00
|
|
|
description: 'Gets info about an user, such as ID, Discord Join date and more',
|
|
|
|
syntax: '<User>',
|
2022-04-18 11:25:40 -05:00
|
|
|
|
2022-04-21 18:09:21 -05:00
|
|
|
async execute (_0, message, _1, config) {
|
2022-04-21 14:23:58 -05:00
|
|
|
const user = message.mentions.users.first() || message.member;
|
2022-04-21 18:09:21 -05:00
|
|
|
|
|
|
|
await message.channel.send({
|
|
|
|
embeds: [{
|
|
|
|
title: `Everything you've ever wanted to know about ${user.user}!`,
|
|
|
|
color: 9442302,
|
|
|
|
footer: {
|
|
|
|
icon_url: message.author.displayAvatarURL(),
|
|
|
|
text: config.footerTxt
|
2022-03-21 10:28:55 -05:00
|
|
|
},
|
2022-04-21 18:09:21 -05:00
|
|
|
thumbnail: {
|
|
|
|
url: user.user.displayAvatarURL()
|
2022-03-21 10:28:55 -05:00
|
|
|
},
|
2022-04-21 18:09:21 -05:00
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: 'Username',
|
|
|
|
value: user.user.username,
|
|
|
|
inline: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Discriminator',
|
|
|
|
value: user.user.discriminator,
|
|
|
|
inline: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Full Username',
|
|
|
|
value: user.user.tag,
|
|
|
|
inline: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'User Profile Picture',
|
|
|
|
value: user.user.displayAvatarURL()
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'User Status',
|
|
|
|
value: user.presence?.status ?? 'Error getting status, does the bot have the GUILD_PRESENCES intent?'
|
|
|
|
// IMPORTANT NOTE:
|
|
|
|
// There seems to be an issue where offline and invisible users return a null presense
|
|
|
|
// I'll try to patch this soon if I can figure out why
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'User ID',
|
|
|
|
value: `\`${user.user.id}\``
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'User Joined Discord',
|
|
|
|
value: user.user.createdAt.toString(),
|
|
|
|
inline: true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}]
|
|
|
|
});
|
2022-03-21 10:28:55 -05:00
|
|
|
}
|
2022-04-21 18:09:21 -05:00
|
|
|
};
|