Skip to content

Commit a5e899f

Browse files
Added error handling
1 parent 6376bc8 commit a5e899f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/qotw/submissions/SubmissionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public WebhookMessageCreateAction<?> handleSubmission(@NotNull ButtonInteraction
7878
thread.sendMessage(member.getAsMention())
7979
.setEmbeds(buildSubmissionThreadEmbed(event.getUser(), questionOptional.get(), config))
8080
.setComponents(ActionRow.of(Button.danger("qotw-submission:delete", "Delete Submission")))
81-
.queue();
81+
.queue(s -> {}, err -> ExceptionLogger.capture(err, getClass().getSimpleName()));
8282
} else {
8383
thread.sendMessage("Could not retrieve current QOTW Question. Please contact an Administrator if you think that this is a mistake.")
8484
.queue();

0 commit comments

Comments
 (0)