fix toString method of ExecutableSlashCommandDefinition and added subCommandGroup display
All checks were successful
github-mirror / push-github (push) Successful in 4s
Build / Gradle-Build (push) Successful in 32s
Publish / Gradle-Publish (push) Successful in 33s
Test / Gradle-Test (push) Successful in 39s

This commit is contained in:
Tueem 2024-12-19 21:23:24 +01:00
parent d8504a7cde
commit 3691434f66
Signed by: tueem
GPG Key ID: F2CE0513D231AD7A

View File

@ -32,7 +32,9 @@ public record ExecutableSlashCommandDefinition(
@Override @Override
public final String toString() { 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() { public boolean isRootCommand() {