From e917c985e2fd9e7ddee0f6b3a7736ce50789ab6c Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Tue, 13 Aug 2024 15:18:09 -0600 Subject: [PATCH] guildinfo: hide empty clan fields --- src/modules/utility/guildinfo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/utility/guildinfo.js b/src/modules/utility/guildinfo.js index 9ab1274..81f11dd 100644 --- a/src/modules/utility/guildinfo.js +++ b/src/modules/utility/guildinfo.js @@ -107,17 +107,17 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) { value: ClanPlaystyle[clan.playstyle] ?? ``, inline: true, }, - { + clan.wildcard_descriptors.length > 0 && { name: "Descriptors", value: clan.wildcard_descriptors.join(", "), inline: true, }, - { + clan.search_terms.length > 0 && { name: "Interests/Topics/Traits", value: `\`${clan.search_terms.map((x) => `"${x}"`).join(", ")}\``, inline: false, }, - { + games.length > 0 && { name: "Associated Games", value: `- ${games.join("\n- ")}`, inline: false,