Skip to content

Commit 062bf47

Browse files
committed
reorder EmbedBuilder instructions in QOTWListAnswersSubcommand
1 parent c079e3f commit 062bf47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/net/javadiscord/javabot/systems/qotw/commands/view/QOTWListAnswersSubcommand.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ public void execute(SlashCommandInteractionEvent event) {
4444
event.deferReply(true).queue();
4545
DbActions.doAsyncDaoAction(QOTWSubmissionRepository::new, repo -> {
4646
List<QOTWSubmission> submissions = repo.getSubmissionsByQuestionNumber(event.getGuild().getIdLong(), questionNum);
47-
EmbedBuilder eb = new EmbedBuilder();
48-
eb.setDescription("**Answers of Question of the Week #" + questionNum + "**\n");
47+
EmbedBuilder eb = new EmbedBuilder()
48+
.setDescription("**Answers of Question of the week #" + questionNum + "**\n")
49+
.setColor(Responses.Type.DEFAULT.getColor())
50+
.setFooter("Results may not be accurate due to historic data.");
4951
TextChannel submissionChannel = Bot.getConfig().get(event.getGuild()).getQotwConfig().getSubmissionChannel();
5052
String allAnswers = submissions
5153
.stream()
@@ -59,8 +61,6 @@ public void execute(SlashCommandInteractionEvent event) {
5961
allAnswers = "No accepted answers found.";
6062
}
6163
eb.appendDescription(allAnswers);
62-
eb.setFooter("Results may not be accurate due to historic data.");
63-
eb.setColor(Responses.Type.DEFAULT.getColor());
6464
event.getHook().sendMessageEmbeds(eb.build()).queue();
6565
});
6666
}

0 commit comments

Comments
 (0)