Compare commits
2 commits
bdb94e3754
...
8fa70aefa1
Author | SHA1 | Date | |
---|---|---|---|
8fa70aefa1 | |||
a2ca461f7f |
2 changed files with 7 additions and 2 deletions
|
@ -88,6 +88,8 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
|
|||
})
|
||||
);
|
||||
|
||||
clan.wildcard_descriptors = clan.wildcard_descriptors.filter((x) => x != "");
|
||||
|
||||
clanEmbed = {
|
||||
title: _guild != null ? "Clan data" : clan.name,
|
||||
description: clan.description ?? "*No description*",
|
||||
|
@ -109,12 +111,14 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
|
|||
},
|
||||
clan.wildcard_descriptors.length > 0 && {
|
||||
name: "Descriptors",
|
||||
value: clan.wildcard_descriptors.join(", "),
|
||||
value: `**${clan.wildcard_descriptors.join(", ")}**`,
|
||||
inline: true,
|
||||
},
|
||||
clan.search_terms.length > 0 && {
|
||||
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,
|
||||
},
|
||||
games.length > 0 && {
|
||||
|
|
|
@ -311,6 +311,7 @@ userinfo.callback = async function (msg, line) {
|
|||
clanData = await hf.bot.requestHandler
|
||||
.request("GET", APIEndpoints.CLAN(user.clan.identity_guild_id), true)
|
||||
.catch(() => {});
|
||||
if (clanData) clanData.wildcard_descriptors = clanData.wildcard_descriptors.filter((x) => x != "");
|
||||
}
|
||||
|
||||
if (anyMember) {
|
||||
|
|
Loading…
Reference in a new issue