Skip to content

Commit

Permalink
Display with stars
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda committed Dec 1, 2024
1 parent ef07219 commit ceaaf3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public CompletableFuture<?> executeGuild(@NotNull SlashCommandInteraction event,
.addField(localizationService.translate(locale, "weward.card-added.name"), name, true)
.setFooter(member.getId());

card.ifPresent(c -> builder.addField(localizationService.translate(locale, "weward.card-added.stars"), Integer.toString(c.stars()), true));
card.ifPresent(c -> builder.addField(localizationService.translate(locale, "weward.card-added.stars"), "⭐".repeat(c.stars()), true));

return deferred.thenCompose(empty -> JDAWrappers.reply(event, builder.build())
.addActionRow(BUTTONS_CARD)
Expand Down

0 comments on commit ceaaf3a

Please sign in to comment.