WorkerClientOptions
Signature
export interface WorkerClientOptions extends BaseClientOptionsProperties
7Methods
1Properties
commands?: NonNullable<Client['options']>['commands'];handlePayload?: ShardManagerOptions['handlePayload'];onShardDisconnect?: ShardManagerOptions['onShardDisconnect'];Deprecated
Use shard disconnect events instead. Injected ShardManager callbacks can double-fire.
onShardReconnect?: ShardManagerOptions['onShardReconnect'];Deprecated
Use shard reconnect events instead. Injected ShardManager callbacks can double-fire.
gateway?: ClientOptions['gateway'];postMessage?: (body: unknown) => Awaitable<unknown>;sendPayloadToParent?: boolean;can have perfomance issues in big bots if the client sends every event, specially in startup (false by default)
Methods
handleManagerMessages?(message: ManagerMessages | WorkerHeartbeaterMessages): Awaitable<unknown>;