Optional
options: Omit<WebSocketShardDestroyOptions, "recover">Fetches the gateway information from Discord - or returns it from cache if available
Optional
force: booleanWhether to ignore the cache and force a fresh fetch
Yields the total number of shards across for your bot, accounting for Discord recommendations
Yields the ids of the shards this manager should manage
Optional
force: booleanOptional
event: string | symbolUpdates your total shard count on-the-fly, spawning shards as needed
The new shard count to use
Static
listenerStatic
onOptional
options: AbortableMethodsOptional
options: AbortableMethodsStatic
onceOptional
options: AbortableMethodsOptional
options: AbortableMethods
This field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter