Compare commits

..

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

View File

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