Update userinfo.js
PTB Build 423 brings fixes to userinfo: + Command now runs correctly This command is not yet complete and may be buggy.
This commit is contained in:
parent
818b024a14
commit
db278e20ab
|
@ -24,7 +24,7 @@ module.exports = {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const version = ("Public Test Release 2")
|
const version = ("Public Test Buld 3, Based on dev Build 424")
|
||||||
const release = ("anitrox_ptb")
|
const release = ("anitrox_ptb")
|
||||||
const os = require("os")
|
const os = require("os")
|
||||||
|
|
||||||
|
|
|
@ -1,52 +1,42 @@
|
||||||
const { User } = require("discord.js");
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
name: 'userinfo',
|
name: "userinfo",
|
||||||
description: 'Shows information about you or another user.',
|
description: "Gets info about an user, such as ID, Discord Join date and more.",
|
||||||
execute(client, message, args) {
|
execute(client, message, args) {
|
||||||
const taggedUser = message.mentions.users.first();
|
|
||||||
|
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
//Actual code
|
const embed = {
|
||||||
const embed = {
|
"title": "Everything you've ever wanted to know about taggedUser.username!",
|
||||||
"title": "<:userinfo:793885335498522685> **User Information**",
|
"color": 172544,
|
||||||
"description": "Everything you've ever wanted to know about **" + taggedUser.username + ("!**"),
|
"footer": {
|
||||||
"color": 11038194,
|
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
|
"text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
|
||||||
"footer": {
|
},
|
||||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
// This should get the user icon to display as the command thumbnail.
|
||||||
"text": "Anitrox © IDeletedSystem64 2018-2021. All Rights Reserved"
|
"thumbnail": {
|
||||||
},
|
"url": "https://cdn.discordapp.com/embed/avatars/0.png"
|
||||||
"thumbnail": {
|
},
|
||||||
"url": taggedUser.displayAvatarURL({ dynamic: true })
|
"fields": [
|
||||||
},
|
{
|
||||||
"fields": [
|
"name": "Full Username",
|
||||||
{
|
"value": taggedUser.tag
|
||||||
"name": "<:userquestion:793984046912110633> **Full Username**",
|
},
|
||||||
"value": taggedUser.username + ("#") + taggedUser.discriminator
|
{
|
||||||
},
|
"name": "User ID",
|
||||||
{
|
"value": "``" + taggedUser.id + "``"
|
||||||
"name": "<:userquestion:793984046912110633> User Status",
|
},
|
||||||
"value": taggedUser.status,
|
{
|
||||||
"value": taggedUser.presence
|
"name": "User Joined Discord",
|
||||||
},
|
"value": taggedUser.CreatedAt,
|
||||||
{
|
"inline": true
|
||||||
"name": "<:userquestion:793984046912110633> User ID",
|
},
|
||||||
"value": taggedUser.id
|
{
|
||||||
},
|
"name": "User Joined Server",
|
||||||
{
|
"value": "are inline fields",
|
||||||
"name": "<:userquestion:793984046912110633> User Joined Discord",
|
"inline": true
|
||||||
"value": taggedUser.CreatedAt,
|
}
|
||||||
"inline": true
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "<:userquestion:793984046912110633> User Joined Server",
|
|
||||||
"value": "tba",
|
|
||||||
"inline": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
message.channel.send({ embed });
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
message.channel.send({ embed });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Reference in New Issue