From 3691434f66e5558687321df1f56e77489597bc32 Mon Sep 17 00:00:00 2001 From: Tueem Date: Thu, 19 Dec 2024 21:23:24 +0100 Subject: [PATCH] fix toString method of ExecutableSlashCommandDefinition and added subCommandGroup display --- .../commands/ExecutableSlashCommandDefinition.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableSlashCommandDefinition.java b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableSlashCommandDefinition.java index e110098..579f3bc 100644 --- a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableSlashCommandDefinition.java +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/ExecutableSlashCommandDefinition.java @@ -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() {