diff --git a/commands/interaction/user/user.js b/commands/interaction/user/user.js index cd38cff..2131431 100644 --- a/commands/interaction/user/user.js +++ b/commands/interaction/user/user.js @@ -40,9 +40,12 @@ module.exports = { let b = renderBadges(u) if(b.length >= 1) cardContent += `\n-# ${b.join('')}\n` + console.log(u) + 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.accentColor) cardContent += `\n${smallIconPill("user_card", "Accent Color")} ${smallPill(`#${u.accentColor.toString(16)}`)}` if (u.clan && u.clan.tag !== null) cardContent += `\n${smallIconPill("shield", "Clan")} ${smallPill(u.clan.tag)}` if(u.hasFlag(1<<23)) cardContent += `\n-# Provisional Account` @@ -53,6 +56,7 @@ module.exports = { iconUrl: getUserAvatar(u), url: `https://discord.com/users/${u.id}` }, + color: u.accentColor, description: `${cardContent}`, fields: [{ name: `${icon("calendar")} Dates`, diff --git a/commands/message/info/user.js b/commands/message/info/user.js index 7d7a898..08584a7 100644 --- a/commands/message/info/user.js +++ b/commands/message/info/user.js @@ -51,6 +51,7 @@ module.exports = { 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.accentColor) cardContent += `\n${smallIconPill("user_card", "Accent Color")} ${smallPill(`#${u.accentColor.toString(16)}`)}` if (u.clan && u.clan.tag !== null) cardContent += `\n${smallIconPill("shield", "Tag")} ${smallPill(u.clan.tag)}` if(u.hasFlag(1<<23)) cardContent += `\n-# Provisional Account` @@ -61,6 +62,7 @@ module.exports = { iconUrl: getUserAvatar(u), url: `https://discord.com/users/${u.id}` }, + color: u.accentColor, description: `${cardContent}`, fields: [{ name: `${icon("calendar")} Dates`,