Skip to content

Commit

Permalink
Add label to the claim button to specify claim cost (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vylpes authored Jun 14, 2024
1 parent 1909fce commit 6767fe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/CardDropHelperMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import CardRarityChances from "../constants/CardRarityChances";
import { DropResult } from "../contracts/SeriesMetadata";
import { CoreClient } from "../client/client";
import AppLogger from "../client/appLogger";
import CardConstants from "../constants/CardConstants";

export default class CardDropHelperMetadata {
public static GetRandomCard(): DropResult | undefined {
Expand Down Expand Up @@ -105,7 +106,7 @@ export default class CardDropHelperMetadata {
.addComponents(
new ButtonBuilder()
.setCustomId(`claim ${drop.card.id} ${claimId} ${userId}`)
.setLabel("Claim")
.setLabel(`Claim (${CardConstants.ClaimCost} 🪙)`)
.setStyle(ButtonStyle.Primary)
.setDisabled(disabled),
new ButtonBuilder()
Expand Down

0 comments on commit 6767fe5

Please sign in to comment.