add Logging to various locations #11

Merged
tueem merged 18 commits from feat/logging into dev 2024-12-20 17:51:24 +00:00
Showing only changes of commit 9a89544a9e - Show all commits

View File

@ -32,9 +32,13 @@ public record ExecutableSlashCommandDefinition(
@Override @Override
public final String toString() { public final String toString() {
return applicationCommand.name() + StringBuilder builder = new StringBuilder();
subCommandGroup != null ? "::" + subCommand.name() : "" + builder.append(applicationCommand.name());
subCommand != null ? "::" + subCommand.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() {