From 9089bd0c80faaedf8f5f72ef459f08ae13ad8347 Mon Sep 17 00:00:00 2001 From: danthe1st Date: Fri, 23 Aug 2024 14:52:36 +0200 Subject: [PATCH] add custom hashCode --- .../discordjug/javabot/systems/moderation/PurgeCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java b/src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java index aa20185bb..2af2f1fbe 100644 --- a/src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java +++ b/src/main/java/net/discordjug/javabot/systems/moderation/PurgeCommand.java @@ -251,6 +251,9 @@ private void archiveMessage(PrintWriter writer, Message message) { } private record RunningPurge(long id, AtomicBoolean cancelled) { - + @Override + public final int hashCode() { + return (int) id; + } } } \ No newline at end of file