Skip to content

Commit e4d3ca9

Browse files
committed
decline response when declining QOTW with command
1 parent 0372d95 commit e4d3ca9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/qotw/submissions/subcommands/QOTWReviewSubcommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,13 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
8282
SubmissionManager manager = new SubmissionManager(qotwConfig, pointsService, questionQueueRepository, notificationService, asyncPool);
8383
if (state.contains("ACCEPT")) {
8484
manager.acceptSubmission(submissionThread, author, state.equals("ACCEPT_BEST"));
85+
Responses.success(event.getHook(), "Submission Accepted", "Successfully accepted submission by " + author.getAsMention()).queue();
8586
} else {
8687
// just do a "wrong answer" for now. this command is going to be removed
8788
// in the near future anyway
8889
manager.declineSubmission(submissionThread, author, SubmissionStatus.DECLINE_WRONG_ANSWER);
90+
Responses.success(event.getHook(), "Submission Declined", "Successfully declined submission by " + author.getAsMention()).queue();
8991
}
90-
Responses.success(event.getHook(), "Submission Accepted", "Successfully accepted submission by " + author.getAsMention()).queue();
9192
if (qotwConfig.getSubmissionChannel().getThreadChannels().size() <= 1) {
9293
Optional<ThreadChannel> newestPostOptional = qotwConfig.getSubmissionsForumChannel().getThreadChannels()
9394
.stream().max(Comparator.comparing(ThreadChannel::getTimeCreated));

0 commit comments

Comments
 (0)