Class CommandHelpHandler<C>

java.lang.Object
cloud.commandframework.CommandHelpHandler<C>

@API(status=STABLE) public final class CommandHelpHandler<C> extends Object
  • Method Details

    • getAllCommands

      public @NonNull List<@NonNull CommandHelpHandler.VerboseHelpEntry<C>> getAllCommands()
      Get exact syntax hints for all commands
      Returns:
      Syntax hints for all registered commands, order in lexicographical order
    • getLongestSharedChains

      public @NonNull List<@NonNull String> getLongestSharedChains()
      Get a list of the longest shared command chains of all commands. If there are two commands "foo bar 1" and "foo bar 2", this would then return "foo bar 1|2"
      Returns:
      Longest shared command chains
    • queryHelp

      public @NonNull CommandHelpHandler.HelpTopic<C> queryHelp(@NonNull String query)
      Query for help
      Parameters:
      query - Query string
      Returns:
      Help topic, will return an empty CommandHelpHandler.IndexHelpTopic if no results were found
    • queryHelp

      public @NonNull CommandHelpHandler.HelpTopic<C> queryHelp(@Nullable C recipient, @NonNull String query)
      Query for help
      Parameters:
      recipient - The recipient of this help query to check permissions against (if Non-Null)
      query - Query string
      Returns:
      Help topic, will return an empty CommandHelpHandler.IndexHelpTopic if no results were found