diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableSlashCommandDefinition.java b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableSlashCommandDefinition.java index 6505984..f0b551c 100644 --- a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableSlashCommandDefinition.java +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableSlashCommandDefinition.java @@ -27,8 +27,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());