Framework
HandlerEntry
Interface: HandlerEntry
A handler entry in the manifest. Extends ProcessedEntry with source tracking.
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
auto? | boolean | Whether this entry was auto-generated. | ProcessedEntry.auto |
exports | { config: boolean; default: boolean; named: string[]; } | Which exports this handler has. Used for lazy loading - can check capabilities before importing. | ProcessedEntry.exports |
exports.config | boolean | Whether config export exists | - |
exports.default | boolean | Whether default export exists | - |
exports.named | string[] | List of named exports found (e.g., ['GET', 'POST']) | - |
extra? | Record<string, unknown> | Additional data for special cases. Examples { parent: 'admin', type: 'subcommand' } for Discord { catchAll: { param: 'path', optional: false } } for Server | ProcessedEntry.extra |
id | string | Unique identifier for this entry. Format: "{key}" for project, "{plugin}:{key}" for plugins For multiple handlers: append ":{index}" | - |
index? | number | For multiple handlers per key (events), the index. | - |
key | string | The handler key. Example "ping", "admin ban", "users/[id]", "auth/[...path]" | ProcessedEntry.key |
metadata | Record<string, unknown> | Metadata extracted from the handler's config export. Structure depends on the route type. | ProcessedEntry.metadata |
module? | string | Module name if from /src/modules/. | ProcessedEntry.module |
parent? | string | For commands with subcommands, the parent command key. | - |
path | string | Path to the handler file (for manifest). Example "commands/admin/ban.js" | ProcessedEntry.path |
plugin | string | Plugin name if source is 'plugin', null otherwise. | - |
pluginVersion? | string | Plugin version if source is 'plugin'. | - |
source | "plugin" | "project" | Where this handler came from. | - |
