Fix the view command having the claimed by field when it doesn't need it (#292)
- Remove the "claimed by" field from the card embed generator if its not supplied - This does affect the drop command, now the drop command only shows the field upon claim, but I think that looks better #276 Reviewed-on: #292 Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
eb3b04f51c
commit
1360452ffd
1 changed files with 7 additions and 2 deletions
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue