diff --git a/commands/message/info/user.js b/commands/message/info/user.js index bdc4394..8b424c4 100644 --- a/commands/message/info/user.js +++ b/commands/message/info/user.js @@ -47,24 +47,26 @@ module.exports = { let usernameDisplay = u.name.replace(/_/g,'\\_'); if(u.discriminator && u.discriminator !== "0") usernameDisplay += `#${u.discriminator}` - usernameDisplay = `` + let cardContent = ""; // Badge Container let b = renderBadges(u) - if(b.length >= 1) usernameDisplay += `\n${b.join('')}\n` + if(b.length >= 1) cardContent += `\n${b.join('')}\n` - if(u.globalName !== null) usernameDisplay += `\n${smallIconPill("user_card", "Display Name")} ${smallPill(u.globalName)}` - if(m && m.nick !== null) usernameDisplay += `\n${smallIconPill("user_card", "Nickname")} ${smallPill(m.nick)}` - if (u.clan && u.clan.tag !== null) usernameDisplay += `\n${smallIconPill("shield", "Clan")} ${smallPill(u.clan.tag)}` + cardContent += `\n${smallIconPill("id", "User ID")} ${smallPill(u.id)}`; + if(u.globalName !== null) cardContent += `\n${smallIconPill("user_card", "Display Name")} ${smallPill(u.globalName)}` + if(m && m.nick !== null) cardContent += `\n${smallIconPill("user_card", "Nickname")} ${smallPill(m.nick)}` + if (u.clan && u.clan.tag !== null) cardContent += `\n${smallIconPill("shield", "Clan")} ${smallPill(u.clan.tag)}` - if(u.hasFlag(1<<23)) usernameDisplay += `\n-# Provisional Account` + if(u.hasFlag(1<<23)) cardContent += `\n-# Provisional Account` let userCard = createEmbed("default", context, { author: { - name: `@${u.username}`, - iconUrl: getUserAvatar(u) + name: usernameDisplay, + iconUrl: getUserAvatar(u), + url: `https://discord.com/users/${u.id}` }, - description: `${icon("user")} ${usernameDisplay}`, + description: `${cardContent}`, fields: [{ name: `${icon("calendar")} Dates`, value: `**Account Created: **${timestamp(u.createdAt, "f")}`, diff --git a/labscore/constants.js b/labscore/constants.js index 7cbf675..822b07a 100644 --- a/labscore/constants.js +++ b/labscore/constants.js @@ -133,6 +133,7 @@ module.exports.ICONS = Object.freeze({ "boost": "<:ico_boost:1263591721741193226>", "discord": "<:ico_discord:1263591704439689226>", "emoji": "<:ico_emoji:1263591687691833479>", + "id": "<:ico_id:1329911839693471834>", "link": "<:ico_link:1263591669727629406>", "locale": "<:ico_locale:1263591655143903314>", "message": "<:ico_message:1263591634537545788>",