@stambha/help
v1.3.2
Published
Built-in Stambha help command — list commands by category
Maintainers
Readme
@stambha/help
Built-in help command for Stambha — lists registered commands by category, with optional per-command details. No discord.js required.
Part of the @stambha monorepo · GitHub
Install
npm install @stambha/help @stambha/core @stambha/argsRequires Node.js 20+.
Quick start
Register like any other command (or let the loader pick up a thin re-export):
import { HelpCommand } from "@stambha/help";
import { createStambhaBot } from "@stambha/core";
const client = createStambhaBot({ /* … */ });
client.register(new HelpCommand(client.registries.commands, { prefixHint: "!" }));| Invocation | Behavior |
|------------|----------|
| !help / /help | Commands grouped by category |
| !help ping / /help command:ping | detailedDescription or description |
Hidden (hidden: true) and disabled (enabled: false) commands are omitted from listings and detail lookups.
Command metadata (core)
super(registry, {
name: "lock",
description: "Lock the channel",
detailedDescription: "Prevents members from sending messages…",
category: "Admin",
hidden: false,
kinds: ["prefix", "slash"],
});Key exports
| Export | Purpose |
|--------|---------|
| HelpCommand | Hybrid prefix + slash help command |
| createHelpCommand | Factory |
| formatHelpCatalog / formatCommandHelp | Pure formatters |
Development
pnpm --filter @stambha/help build
pnpm --filter @stambha/help test