remove missing parent() call in SlashCommandDefinition#getSubCommands()
This commit is contained in:
parent
56b668851b
commit
f4ee258eb1
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user