A - The actor typepublic interface AutoCompleter<A extends CommandActor>
This should be accessed using Lamp.autoCompleter()
SuggestionProvider,
SuggestionProviders,
SuggestionProviders.Builder,
Lamp.Builder#suggestionProviders(),
Suggest,
SuggestWith| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.List<java.lang.String> |
complete(A actor,
@NotNull java.lang.String input)
Returns a list of suggestions for the given input and actor.
|
@NotNull java.util.List<java.lang.String> |
complete(A actor,
@NotNull StringStream input)
Returns a list of suggestions for the given input and actor.
|
static <A extends CommandActor> |
create(@NotNull Lamp<A> lamp)
Creates an
AutoCompleter for the given Lamp instance. |
@ApiStatus.Internal @NotNull static <A extends CommandActor> @NotNull AutoCompleter<A> create(@NotNull @NotNull Lamp<A> lamp)
AutoCompleter for the given Lamp instance.A - The actor typelamp - Lamp instance to create forAutoCompleter instance@NotNull
@NotNull java.util.List<java.lang.String> complete(@NotNull
A actor,
@NotNull
@NotNull java.lang.String input)
This will exclude any command or parameter that the user has no access to.
If no suitable completions are found, this will return an empty, immutable list.
actor - The actor to supply forinput - The input to parse with@NotNull
@NotNull java.util.List<java.lang.String> complete(@NotNull
A actor,
@NotNull
@NotNull StringStream input)
This will exclude any command or parameter that the user has no access to.
If no suitable completions are found, this will return an empty, immutable list.
actor - The actor to supply forinput - The input to parse with