File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/net/javadiscord/javabot/systems/qotw/commands/view Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments