Skip to content

Commit

Permalink
fix: AggregateCommandParser -> AggregateParser
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Jan 22, 2024
1 parent a6aa683 commit 7a0019c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import cloud.commandframework.Command;
import cloud.commandframework.CommandBean;
import cloud.commandframework.CommandProperties;
import cloud.commandframework.arguments.aggregate.AggregateCommandParser;
import cloud.commandframework.arguments.aggregate.AggregateParser;
import cloud.commandframework.arguments.flags.CommandFlag;
import cloud.commandframework.arguments.parser.ArgumentParseResult;
import cloud.commandframework.arguments.suggestion.SuggestionProvider;
Expand Down Expand Up @@ -77,7 +77,7 @@ public AddCatCommand(final @NonNull CatService catService) {
protected Command.@NonNull Builder<SpringCommandSender> configure(
final Command.@NonNull Builder<SpringCommandSender> builder
) {
final AggregateCommandParser<SpringCommandSender, Cat> catParser = AggregateCommandParser.<SpringCommandSender>builder()
final AggregateParser<SpringCommandSender, Cat> catParser = AggregateParser.<SpringCommandSender>builder()
.withComponent("name", stringParser(), SuggestionProvider.blocking((ctx, in) -> List.of(
CloudCompletionProposal.of("Missy").displayText("Missy (A cute cat name)"),
CloudCompletionProposal.of("Donald").displayText("Donald (Old man name = CUTE!)"),
Expand Down

0 comments on commit 7a0019c

Please sign in to comment.