remove missing parent() call in SlashCommandDefinition#getSubCommands()
All checks were successful
github-mirror / push-github (push) Successful in 4s
Build / Gradle-Build (push) Successful in 53s
Test / Gradle-Test (push) Successful in 52s

This commit is contained in:
Tueem 2025-03-03 23:40:06 +01:00
parent 56b668851b
commit f4ee258eb1
Signed by: tueem
GPG Key ID: F2CE0513D231AD7A

View File

@ -72,7 +72,7 @@ public class SlashCommandDefinition {
public SlashCommandIdentifier[] getSubCommands() {
if (isRootCommand)
return null;
return InteractionIdentifier.distinct(entries.stream().filter(x -> x instanceof RootCommandIdentifier).toList()).toArray(SlashCommandIdentifier[]::new);
return InteractionIdentifier.distinct(entries.stream().filter(x -> x.parent() instanceof RootCommandIdentifier).toList()).toArray(SlashCommandIdentifier[]::new);
}
public SlashCommandIdentifier[] getSubCommands(String groupName) {