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 Type Method Description
      @NonNull java.util.List<@NonNull java.lang.String> getSuggestions​(@NonNull CommandContext<C> context, @NonNull java.lang.String input)
      Get command suggestions for the "next" argument that would yield a correctly parsing command input
    • Method Detail

      • getSuggestions

        @NonNull java.util.List<@NonNull java.lang.String> getSuggestions​(@NonNull CommandContext<C> context,
                                                                          @NonNull java.lang.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