diff --git a/cloud-core/src/main/java/cloud/commandframework/CommandHelpHandler.java b/cloud-core/src/main/java/cloud/commandframework/CommandHelpHandler.java index 646e841a1..eb7fdd0b8 100644 --- a/cloud-core/src/main/java/cloud/commandframework/CommandHelpHandler.java +++ b/cloud-core/src/main/java/cloud/commandframework/CommandHelpHandler.java @@ -112,6 +112,19 @@ public final class CommandHelpHandler<C> { return this.queryHelp(null, query); } + /** + * Query a root index help topic. This is the topic returned when querying {@link #queryHelp(Object, String)} with + * an empty string, or when there are no results. + * + * @param recipient The recipient of this help query to check permissions against (if Non-Null) + * @return index help topic + * @since 1.8.0 + */ + @API(status = API.Status.STABLE, since = "1.8.0") + public @NonNull IndexHelpTopic<C> queryRootIndex(final @Nullable C recipient) { + return (IndexHelpTopic<C>) this.queryHelp(recipient, ""); + } + /** * Query for help *