Framework
HandlerRecord<THandler, TNamedExports>
Interface: HandlerRecord<THandler, TNamedExports>
Handler record representing a registered handler in the portal. The handler field is null until lazy-loaded.
Type Parameters
| Type Parameter | Default type |
|---|---|
THandler | unknown |
TNamedExports | Record<string, unknown> |
Properties
| Property | Type | Description |
|---|---|---|
auto? | boolean | Whether this handler was auto-generated |
enabled | boolean | Runtime enable/disable state |
exports | { config: boolean; default: boolean; named: string[]; } | Which exports this handler has (from manifest). Available BEFORE handler is imported. |
exports.config | boolean | - |
exports.default | boolean | - |
exports.named | string[] | - |
handler | HandlerModule<THandler, Record<string, unknown>> & TNamedExports | Handler module. NULL until imported (lazy loading). After import, contains default, config, and named exports. |
key | string | Handler key (e.g., 'ping', 'admin ban') |
metadata | Record<string, unknown> | Metadata extracted from config export |
module? | string | Module this handler belongs to (for cross-cutting enable/disable) |
path | string | Path to the compiled handler file |
plugin? | { name: string; version: string; } | Plugin that provides this handler |
plugin.name | string | - |
plugin.version | string | - |
type | string | Route type in namespace:route format (e.g., 'discord:commands') |
