Compare commits
No commits in common. "c5a7f3665e9dda3a0594202184d809a1437aaef1" and "aaf4f3297a99409fddf36ef19b7971841db6ef91" have entirely different histories.
c5a7f3665e
...
aaf4f3297a
@ -41,13 +41,7 @@ public record ExecutableSlashCommandDefinition(
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final String toString() {
|
public final String toString() {
|
||||||
StringBuilder builder = new StringBuilder();
|
return applicationCommand.name() + subCommand.name() != null ? "::" + subCommand.name() : "";
|
||||||
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() {
|
public boolean isRootCommand() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user