From 1b13e7c2fddd1e8419e4f09fa984c9892f28ab9c Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 8 Jul 2024 17:32:59 +0100 Subject: [PATCH] Fix the view command having the claimed by field when it doesn't need it --- src/helpers/CardDropHelperMetadata.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/helpers/CardDropHelperMetadata.ts b/src/helpers/CardDropHelperMetadata.ts index 8ed0087..982661e 100644 --- a/src/helpers/CardDropHelperMetadata.ts +++ b/src/helpers/CardDropHelperMetadata.ts @@ -94,13 +94,18 @@ export default class CardDropHelperMetadata { name: "Claimed", value: `${quantityClaimed}`, inline: true, - }, + } + ]); + + if (claimedBy != null) { + embed.addFields([ { name: "Claimed by", - value: claimedBy ?? "(UNCLAIMED)", + value: claimedBy, inline: true, } ]); + } if (currency != null) { embed.addFields([ -- 2.45.2