Interface CommandSuggestionEngine<C>

Type Parameters:
C - Command sender type
All Known Implementing Classes:
DelegatingCommandSuggestionEngine

@API(status=STABLE) public interface CommandSuggestionEngine<C>
Handler that produces command suggestions depending on input
  • Method Summary

    Modifier and Type
    Method
    Description
    @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
  • 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 context
      input - Input provided by the sender
      Returns:
      List of suggestions