From ec75215b726be10d2087e9c0baf1a8784ec2a420 Mon Sep 17 00:00:00 2001 From: tueem Date: Fri, 25 Oct 2024 20:15:49 +0200 Subject: [PATCH] compare ApplicationCommand annotations only by name --- .../interaction/commands/ExecutableCommandDefinition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableCommandDefinition.java b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableCommandDefinition.java index ceeec51..ac240c6 100644 --- a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableCommandDefinition.java +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableCommandDefinition.java @@ -15,7 +15,7 @@ public record ExecutableCommandDefinition( if (!(o instanceof ExecutableCommandDefinition)) return false; ExecutableCommandDefinition other = (ExecutableCommandDefinition) o; - return other.applicationCommand.equals(this.applicationCommand) && + return other.applicationCommand.name().equals(this.applicationCommand.name()) && other.subCommandGroups.equals(this.subCommandGroups) && other.subCommand.equals(this.subCommand); }