From 106169fb275cf92d1b782526c930b0df5490266c Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Sun, 13 Apr 2025 12:15:10 +0200 Subject: [PATCH] small badges on profile cards --- commands/interaction/slash/info/user.js | 2 +- commands/interaction/user/user.js | 2 +- commands/message/info/user.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/interaction/slash/info/user.js b/commands/interaction/slash/info/user.js index 1ae707f..35c9e6c 100644 --- a/commands/interaction/slash/info/user.js +++ b/commands/interaction/slash/info/user.js @@ -56,7 +56,7 @@ module.exports = { // Badge Container let b = renderBadges(u) - if(b.length >= 1) cardContent += `\n${b.join('')}\n` + if(b.length >= 1) cardContent += `\n-# ${b.join('')}\n` cardContent += `\n${smallIconPill("id", "User ID")} ${smallPill(u.id)}`; if(u.globalName !== null) cardContent += `\n${smallIconPill("user_card", "Display Name")} ${smallPill(u.globalName)}` diff --git a/commands/interaction/user/user.js b/commands/interaction/user/user.js index bee1a9e..cd38cff 100644 --- a/commands/interaction/user/user.js +++ b/commands/interaction/user/user.js @@ -38,7 +38,7 @@ module.exports = { // Badge Container let b = renderBadges(u) - if(b.length >= 1) cardContent += `\n${b.join('')}\n` + if(b.length >= 1) cardContent += `\n-# ${b.join('')}\n` cardContent += `\n${smallIconPill("id", "User ID")} ${smallPill(u.id)}`; if(u.globalName !== null) cardContent += `\n${smallIconPill("user_card", "Display Name")} ${smallPill(u.globalName)}` diff --git a/commands/message/info/user.js b/commands/message/info/user.js index 7d62d7f..7d7a898 100644 --- a/commands/message/info/user.js +++ b/commands/message/info/user.js @@ -46,12 +46,12 @@ module.exports = { // Badge Container let b = renderBadges(u) - if(b.length >= 1) cardContent += `\n${b.join('')}\n` + if(b.length >= 1) cardContent += `\n-# ${b.join('')}\n` 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.clan && u.clan.tag !== null) cardContent += `\n${smallIconPill("shield", "Tag")} ${smallPill(u.clan.tag)}` if(u.hasFlag(1<<23)) cardContent += `\n-# Provisional Account`