Skip to content

Commit 9089bd0

Browse files
committed
add custom hashCode
1 parent fb23042 commit 9089bd0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ private void archiveMessage(PrintWriter writer, Message message) {
251251
}
252252

253253
private record RunningPurge(long id, AtomicBoolean cancelled) {
254-
254+
@Override
255+
public final int hashCode() {
256+
return (int) id;
257+
}
255258
}
256259
}

0 commit comments

Comments
 (0)