Skip to content

Commit d143fd4

Browse files
committed
add queue() to locking QOTW view thread
1 parent 2dd9e06 commit d143fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
6666
history.getRetrievedHistory(),
6767
thread -> {
6868
Responses.success(event.getHook(), "View Answer", "Answer copied successfully").queue();
69-
thread.getManager().setLocked(true);
69+
thread.getManager().setLocked(true).queue();
7070
})),
7171
() -> Responses.error(event.getHook(), "The QOTW-Submission thread was not found.").queue()));
7272
});

0 commit comments

Comments
 (0)