Compare commits
3 Commits
aaf4f3297a
...
c5a7f3665e
Author | SHA1 | Date | |
---|---|---|---|
c5a7f3665e
|
|||
455fc4955f
|
|||
3691434f66
|
@@ -41,7 +41,13 @@ public record ExecutableSlashCommandDefinition(
|
||||
|
||||
@Override
|
||||
public final String toString() {
|
||||
return applicationCommand.name() + subCommand.name() != null ? "::" + subCommand.name() : "";
|
||||
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();
|
||||
}
|
||||
|
||||
public boolean isRootCommand() {
|
||||
|
Reference in New Issue
Block a user