WorkerClient

Signature

@Mixins(RegisteredPluginExtension)export declare class WorkerClient<Ready extends boolean = boolean> extends BaseClient

Properties

promises: Map<string, {    resolve: (value: any) => void;    timeout: NodeJS.Timeout;}>;
botIdSetter
set botId(id: string);
botIdGetter
get botId(): string;

Methods

tellWorker<R, V extends Record<string, unknown>>(workerId: number, func: (_: this, vars: V) => R, vars: V): Promise<R>;
tellWorkers<R, V extends Record<string, unknown>>(func: (_: this, vars: V) => R, vars: V): Promise<Awaited<R>[]>;
protected execute(..._options: unknown[]): Promise<void>;
close(): Promise<void>;

Closes resources managed by the plugin lifecycle. This waits for in-flight plugin setup and runs `SeyfertPlugin.teardown`. It does not close the gateway, REST client, or cache adapter.

uploadCommands({ applicationId, cachePath }?: {    applicationId?: string;    cachePath?: string;}): Promise<void>;