Compare commits

...

2 commits

2 changed files with 7 additions and 2 deletions

View file

@ -88,6 +88,8 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
}) })
); );
clan.wildcard_descriptors = clan.wildcard_descriptors.filter((x) => x != "");
clanEmbed = { clanEmbed = {
title: _guild != null ? "Clan data" : clan.name, title: _guild != null ? "Clan data" : clan.name,
description: clan.description ?? "*No description*", description: clan.description ?? "*No description*",
@ -109,12 +111,14 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
}, },
clan.wildcard_descriptors.length > 0 && { clan.wildcard_descriptors.length > 0 && {
name: "Descriptors", name: "Descriptors",
value: clan.wildcard_descriptors.join(", "), value: `**${clan.wildcard_descriptors.join(", ")}**`,
inline: true, inline: true,
}, },
clan.search_terms.length > 0 && { clan.search_terms.length > 0 && {
name: "Interests/Topics/Traits", name: "Interests/Topics/Traits",
value: `\`${clan.search_terms.map((x) => `"${x}"`).join(", ")}\``, value: `${clan.search_terms
.map((term) => `\`\u2004${term.replaceAll(" ", "\u2009")}\u2004\``)
.join("\u2004")}`,
inline: false, inline: false,
}, },
games.length > 0 && { games.length > 0 && {

View file

@ -311,6 +311,7 @@ userinfo.callback = async function (msg, line) {
clanData = await hf.bot.requestHandler clanData = await hf.bot.requestHandler
.request("GET", APIEndpoints.CLAN(user.clan.identity_guild_id), true) .request("GET", APIEndpoints.CLAN(user.clan.identity_guild_id), true)
.catch(() => {}); .catch(() => {});
if (clanData) clanData.wildcard_descriptors = clanData.wildcard_descriptors.filter((x) => x != "");
} }
if (anyMember) { if (anyMember) {