compare ApplicationCommand annotations only by name

This commit is contained in:
2024-10-25 20:15:49 +02:00
parent f12c83cf96
commit ec75215b72

View File

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