Compare commits

..

No commits in common. "9a89544a9e35f0aaeace1dada6018a45dbef4173" and "b72c55fc6e0d28fd04de6403cd7d5cae45b43ce8" have entirely different histories.

View File

@ -32,13 +32,9 @@ public record ExecutableSlashCommandDefinition(
@Override @Override
public final String toString() { public final String toString() {
StringBuilder builder = new StringBuilder(); return applicationCommand.name() +
builder.append(applicationCommand.name()); subCommandGroup != null ? "::" + subCommand.name() : "" +
if (subCommandGroup != null && subCommandGroup.name() != null) subCommand != null ? "::" + subCommand.name() : "";
builder.append("::").append(subCommandGroup.name());
if (subCommand != null && subCommand.name() != null)
builder.append("::").append(subCommand.name());
return builder.toString();
} }
public boolean isRootCommand() { public boolean isRootCommand() {