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 Mar 19, 2024
1 parent 069ad1c commit f99e811
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 f99e811

Please sign in to comment.