Handle WARN case in EditHistoryMapper by updating "litebans_warnings" instead of throwing an exception.

This commit is contained in:
akastijn 2025-11-22 00:13:11 +01:00
parent 0f11167953
commit a50b4ed658

View File

@ -48,7 +48,7 @@ public interface EditHistoryMapper {
case BAN -> updateUntil("litebans_bans", id, until);
case MUTE -> updateUntil("litebans_mutes", id, until);
case KICK -> throw new IllegalArgumentException("KICK has no until");
case WARN -> throw new IllegalArgumentException("WARN has no until");
case WARN -> updateUntil("litebans_warnings", id, until);
};
}