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 e110098..579f3bc 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 @@ -32,7 +32,9 @@ public record ExecutableSlashCommandDefinition( @Override public final String toString() { - return applicationCommand.name() + subCommand.name() != null ? "::" + subCommand.name() : ""; + return applicationCommand.name() + + subCommandGroup != null ? "::" + subCommand.name() : "" + + subCommand != null ? "::" + subCommand.name() : ""; } public boolean isRootCommand() {