fix toString method of ExecutableSlashCommandDefinition and added subCommandGroup display
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user