From 5f654f9ca6a0c2d0a1496adf45594a231f95b2b9 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 2 Jul 2024 21:41:13 +0100 Subject: [PATCH] update vote command --- .../bat/features/base/commands/general/VoteCommand.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/features/base/commands/general/VoteCommand.java b/src/main/java/cc/fascinated/bat/features/base/commands/general/VoteCommand.java index c0acbed..8a4731e 100644 --- a/src/main/java/cc/fascinated/bat/features/base/commands/general/VoteCommand.java +++ b/src/main/java/cc/fascinated/bat/features/base/commands/general/VoteCommand.java @@ -2,6 +2,7 @@ package cc.fascinated.bat.features.base.commands.general; import cc.fascinated.bat.command.BatCommand; import cc.fascinated.bat.command.CommandInfo; +import cc.fascinated.bat.common.EmbedDescriptionBuilder; import cc.fascinated.bat.common.EmbedUtils; import cc.fascinated.bat.model.BatGuild; import cc.fascinated.bat.model.BatUser; @@ -24,13 +25,13 @@ public class VoteCommand extends BatCommand { @Override public void execute(BatGuild guild, @NonNull BatUser user, @NonNull MessageChannel channel, Member member, @NonNull SlashCommandInteraction event) { - StringBuilder builder = new StringBuilder(); - builder.append("You can vote for the bot by clicking the following links:\n\n"); + EmbedDescriptionBuilder description = new EmbedDescriptionBuilder("Vote Links"); + description.appendLine("Vote for the bot on the following websites to support us!", true); for (String link : VOTE_LINKS) { - builder.append("%s\n".formatted(link)); + description.appendLine(link, true); } event.replyEmbeds(EmbedUtils.genericEmbed() - .setDescription(builder.toString()) + .setDescription(description.build()) .build() ).queue(); }