From 9732a76873c85ff5b4d5d63f4914b98c8f53a9ff Mon Sep 17 00:00:00 2001 From: bignutty <3515180-bignutty@users.noreply.gitlab.com> Date: Thu, 29 Aug 2024 00:02:20 +0200 Subject: [PATCH] partially support clans --- commands/interaction/slash/info/user.js | 1 + commands/interaction/user/user.js | 1 + commands/message/info/user.js | 1 + 3 files changed, 3 insertions(+) diff --git a/commands/interaction/slash/info/user.js b/commands/interaction/slash/info/user.js index 650ab45..1e8e2a8 100644 --- a/commands/interaction/slash/info/user.js +++ b/commands/interaction/slash/info/user.js @@ -63,6 +63,7 @@ module.exports = { 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)}` let userCard = createEmbed("default", context, { description: `${icon("user")} ${usernameDisplay}`, diff --git a/commands/interaction/user/user.js b/commands/interaction/user/user.js index 304a981..b40b57f 100644 --- a/commands/interaction/user/user.js +++ b/commands/interaction/user/user.js @@ -42,6 +42,7 @@ module.exports = { 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)}` let userCard = createEmbed("default", context, { description: `${icon("user")} ${usernameDisplay}`, diff --git a/commands/message/info/user.js b/commands/message/info/user.js index 29c421f..01e0352 100644 --- a/commands/message/info/user.js +++ b/commands/message/info/user.js @@ -53,6 +53,7 @@ module.exports = { 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)}` let userCard = createEmbed("default", context, { description: `${icon("user")} ${usernameDisplay}`,