compare ApplicationCommand annotations only by name
This commit is contained in:
parent
f12c83cf96
commit
ec75215b72
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user