LogoRobo.js
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 ParameterDefault type
THandlerunknown
TNamedExportsRecord<string, unknown>

Properties

PropertyTypeDescription
auto?booleanWhether this handler was auto-generated
enabledbooleanRuntime enable/disable state
exports{ config: boolean; default: boolean; named: string[]; }Which exports this handler has (from manifest). Available BEFORE handler is imported.
exports.configboolean-
exports.defaultboolean-
exports.namedstring[]-
handlerHandlerModule<THandler, Record<string, unknown>> & TNamedExportsHandler module. NULL until imported (lazy loading). After import, contains default, config, and named exports.
keystringHandler key (e.g., 'ping', 'admin ban')
metadataRecord<string, unknown>Metadata extracted from config export
module?stringModule this handler belongs to (for cross-cutting enable/disable)
pathstringPath to the compiled handler file
plugin?{ name: string; version: string; }Plugin that provides this handler
plugin.namestring-
plugin.versionstring-
typestringRoute type in namespace:route format (e.g., 'discord:commands')

On this page