Skip to content

Commit 89c2e54

Browse files
fix missing status
1 parent b5b068b commit 89c2e54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import net.javadiscord.javabot.systems.qotw.dao.QuestionQueueRepository;
1515
import net.javadiscord.javabot.systems.qotw.model.QOTWSubmission;
1616
import net.javadiscord.javabot.systems.qotw.submissions.SubmissionManager;
17+
import net.javadiscord.javabot.systems.qotw.submissions.SubmissionStatus;
1718
import net.javadiscord.javabot.util.Responses;
1819
import org.jetbrains.annotations.NotNull;
1920
import xyz.dynxsty.dih4jda.interactions.commands.application.SlashCommand;
@@ -82,7 +83,9 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
8283
if (state.contains("ACCEPT")) {
8384
manager.acceptSubmission(event.getHook(), submissionThread, author, state.equals("ACCEPT_BEST"));
8485
} else {
85-
manager.declineSubmission(event.getHook(), submissionThread, author);
86+
// just do a "wrong answer" for now. this command is going to be removed
87+
// in the near future anyway
88+
manager.declineSubmission(event.getHook(), submissionThread, author, SubmissionStatus.DECLINE_WRONG_ANSWER);
8689
}
8790
if (qotwConfig.getSubmissionChannel().getThreadChannels().size() <= 1) {
8891
Optional<ThreadChannel> newestPostOptional = qotwConfig.getSubmissionsForumChannel().getThreadChannels()

0 commit comments

Comments
 (0)