Skip to content

Commit

Permalink
Fix NPE in default ban method
Browse files Browse the repository at this point in the history
  • Loading branch information
wasdennnoch committed Apr 2, 2024
1 parent 41aaffe commit f57cfda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ default CompletableFuture<Void> banUser(User user, Duration duration, String rea
* @return A future to check if the ban was successful.
*/
default CompletableFuture<Void> banUser(String userId) {
return banUser(userId, null);
return banUser(userId, Duration.ZERO);
}

/**
Expand Down

0 comments on commit f57cfda

Please sign in to comment.