Package cloud.commandframework.arguments
Interface CommandSuggestionEngine<C>
- Type Parameters:
C
- Command sender type
- All Known Implementing Classes:
DelegatingCommandSuggestionEngine
public interface CommandSuggestionEngine<C>
Handler that produces command suggestions depending on input
-
Method Summary
Modifier and TypeMethodDescriptiongetSuggestions(@NonNull CommandContext<C> context, @NonNull String input)
Get command suggestions for the "next" argument that would yield a correctly parsing command input
-
Method Details
-
getSuggestions
@NonNull List<@NonNull String> getSuggestions(@NonNull CommandContext<C> context, @NonNull String input)Get command suggestions for the "next" argument that would yield a correctly parsing command input- Parameters:
context
- Request contextinput
- Input provided by the sender- Returns:
- List of suggestions
-