fix equality check of ExecutableSlashCommand
All checks were successful
github-mirror / push-github (push) Successful in 4s
Build / Gradle-Build (push) Successful in 32s
Publish / Gradle-Publish (push) Successful in 32s
Test / Gradle-Test (push) Successful in 39s

This commit is contained in:
Tueem 2024-12-20 17:03:35 +01:00
parent 455fc4955f
commit 71c910ab93
Signed by: tueem
GPG Key ID: F2CE0513D231AD7A

View File

@ -18,8 +18,8 @@ public record ExecutableSlashCommandDefinition(
ExecutableSlashCommandDefinition other = (ExecutableSlashCommandDefinition) o;
boolean equals = false;
if (this.applicationCommand() != null && other.subCommandGroup() != null)
equals = this.applicationCommand.name().equals(other.applicationCommand().name());
if (this.applicationCommand() != null && other.applicationCommand() != null)
equals = this.applicationCommand().name().equals(other.applicationCommand().name());
if (this.subCommandGroup() != null && other.subCommandGroup() != null)
equals = this.subCommandGroup().name().equals(other.subCommandGroup().name());