You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

WorkerShardingStrategyOptions

export declare interface WorkerShardingStrategyOptions
export declare interface WorkerShardingStrategyOptions
shardsPerWorker:number | 'all'
Dictates how many shards should be spawned per worker thread.
workerPath?:string
Path to the worker file to use. The worker requires quite a bit of setup, it is recommended you leverage the WorkerBootstrapper class.