Skip to content

Commit

Permalink
filter help entries for the actor
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Sep 11, 2024
1 parent cf5564e commit 5e2e16a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public final class ParameterTypes<A extends CommandActor> {
ContextParameter.Factory.forType(ExecutableCommand.class, (parameter, context) -> context.command()),
ContextParameter.Factory.forType(Lamp.class, (parameter, context) -> context.lamp()),
ContextParameter.Factory.forTypeAndSubclasses(CommandActor.class, (parameter, context) -> context.actor()),
ContextParameter.Factory.forType(RelatedCommands.class, (parameter, context) -> context.command().relatedCommands()),
ContextParameter.Factory.forType(SiblingCommands.class, (parameter, context) -> context.command().siblingCommands()),
ContextParameter.Factory.forType(ChildrenCommands.class, (parameter, context) -> context.command().childrenCommands())
ContextParameter.Factory.forType(RelatedCommands.class, (parameter, context) -> context.command().relatedCommands(context.actor())),
ContextParameter.Factory.forType(SiblingCommands.class, (parameter, context) -> context.command().siblingCommands(context.actor())),
ContextParameter.Factory.forType(ChildrenCommands.class, (parameter, context) -> context.command().childrenCommands(context.actor()))
);

private final List<ParameterFactory> factories;
Expand Down

0 comments on commit 5e2e16a

Please sign in to comment.