Usage
Parameters
The specific command to get help for. Leave empty to see all commands.
Implementation
src/commands/mod.rs:9-25
Features
Command Autocomplete
The help command includes autocomplete functionality that suggests command names as you type. It respects Discord’s locale settings and shows localized command names when available.src/commands/mod.rs:27-41
Help Display Modes
- All Commands
- Specific Command
When called without parameters, displays a comprehensive list of all available commands grouped by category.Example:Response:
- Lists all commands with their descriptions
- Shows command prefixes (/ for slash commands, custom prefix for text commands)
- Displays parameter information
- Indicates required vs optional parameters
Help Configuration
The help command can be customized with the following options:Additional text displayed at the bottom of help messages for bot-specific tips
Whether to make help responses ephemeral (visible only to the requesting user)
Whether to include context menu commands in the help listing
Command Formatting
The help system automatically formats commands based on their type:| Command Type | Prefix | Example |
|---|---|---|
| Slash command | / | /verify init email@example.com |
| Prefix command | Custom (from config) | ..help verify |
| Context menu | (Context menu command on user/message) | Right-click menu |
Localization Support
The help command respects Discord’s user locale settings and displays command names and descriptions in the user’s preferred language when translations are available:- English (en-US)
- German (de)
- Japanese (ja)
Error Handling
If a command name is provided that doesn’t exist, the help command will display:Related Commands
register
Register slash commands with Discord