Skip to content

Commit

Permalink
Remove pending verification correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Jan 10, 2024
1 parent ac501be commit d336a61
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ protected void onButton(ButtonInteractionEvent event, String[] arguments) {
.flatMap(_ -> event.getMessage().editMessage("Request canceled."))
.flatMap(_ -> event.getGuild().removeTimeout(UserSnowflake.fromId(userId))
.reason("rec: MC Verification canceled"))
.onSuccess(_ -> Database.main().useExtension(McVerificationDAO.class, db -> db.delete(event.getGuild().getIdLong(), userId)))
.onSuccess(_ -> ModerationActionRecorder.recordAndLog(
ModLogEntry.unmute(userId, event.getGuild().getIdLong(), event.getUser().getIdLong(), "MC verification canceled"),
event.getJDA()
Expand Down

0 comments on commit d336a61

Please sign in to comment.