compare ApplicationCommand annotations only by name

This commit is contained in:
tueem 2024-10-25 20:15:49 +02:00
parent f12c83cf96
commit ec75215b72
No known key found for this signature in database
GPG Key ID: 819A0F7C36B9CF07

@ -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);
}