Remove statuses
This commit is contained in:
parent
2be9ee8b69
commit
9940954ae9
|
@ -1,31 +1,17 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
name: "userinfo",
|
name: "userinfo",
|
||||||
description: "Gets info about an user, such as ID, Discord Join date and more.",
|
description: "Gets info about an user, such as ID, Discord Join date and more",
|
||||||
|
syntax: "<User>",
|
||||||
execute(client, message, args) {
|
execute(client, message, args) {
|
||||||
|
const {footerTxt} = require('../config.json');
|
||||||
|
let user = message.mentions.users.first() || args[0]
|
||||||
|
if (!user) user = message.author
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const user = message.mentions.users.first();
|
|
||||||
var i=0;i<user.presence.activities.length;i
|
|
||||||
const activity = user.presence.activities[i];
|
|
||||||
|
|
||||||
if(!activity) {
|
|
||||||
const activity = "This user doesn't have a set status"
|
|
||||||
// Checks if a user was mentioned. If not, returns error message.
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "Everything you've ever wanted to know about " + user.username + "!",
|
"title": "Everything you've ever wanted to know about " + user.username + "!",
|
||||||
"color": 9442302,
|
"color": 9442302,
|
||||||
"footer": {
|
"footer": {
|
||||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
"icon_url": message.author.displayAvatarURL(),
|
||||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem644"
|
"text": footerTxt
|
||||||
},
|
},
|
||||||
|
|
||||||
"thumbnail": {
|
"thumbnail": {
|
||||||
|
@ -33,34 +19,40 @@ module.exports = {
|
||||||
},
|
},
|
||||||
"fields": [
|
"fields": [
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Username",
|
||||||
|
"value": user.username,
|
||||||
|
"inline": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Discriminator",
|
||||||
|
"value": user.discriminator,
|
||||||
|
"inline": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Full Username",
|
"name": "Full Username",
|
||||||
"value": user.tag
|
"value": user.tag,
|
||||||
|
"inline": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "User Profile Picture",
|
"name": "User Profile Picture",
|
||||||
"value": user.displayAvatarURL()
|
"value": user.displayAvatarURL()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "User Presence",
|
"name": "User Status",
|
||||||
value: user.presence.status
|
value: user.presence.status
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "Custom Status",
|
|
||||||
value: activity.state
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "User ID",
|
"name": "User ID",
|
||||||
"value": "``" + user.id + "``"
|
"value": "```" + user.id + "```"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "User Joined Discord",
|
"name": "User Joined Discord",
|
||||||
"value": user.createdAt,
|
"value": user.createdAt,
|
||||||
inline: true
|
inline: true
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
message.channel.send({ embed: embed });
|
message.channel.send({ embed: embed });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue