Package studio.mevera.imperat.resolvers
Interface SuggestionResolver<S extends Source>
- Type Parameters:
S- the command-sender valueType
- All Known Implementing Classes:
SuggestionResolverRegistry.EnumSuggestionResolver
Represents a suggestion providing interface
for an argument/parameter
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<List<String>>asyncAutoComplete(SuggestionContext<S> context, CommandParameter<S> parameter) autoComplete(SuggestionContext<S> context, CommandParameter<S> parameter) static <S extends Source>
SuggestionResolver<S>forCommand(Command<S> command) static <S extends Source>
SuggestionResolver<S>staticSuggestions(String... results) static <S extends Source>
SuggestionResolver<S>staticSuggestions(List<String> results)
-
Method Details
-
staticSuggestions
-
staticSuggestions
-
forCommand
-
autoComplete
- Parameters:
context- the context for suggestionsparameter- the parameter of the value to complete- Returns:
- the auto-completed suggestions of the current argument
-
asyncAutoComplete
default CompletableFuture<List<String>> asyncAutoComplete(SuggestionContext<S> context, CommandParameter<S> parameter)
-