Preview environment

interface IIdentifyThrottler

export interface IIdentifyThrottler

IdentifyThrottlers are responsible for dictating when a shard is allowed to identify.

See also: https://discord.com/developers/docs/topics/gateway#sharding-max-concurrency

waitForIdentify(
shardId: number
signal: AbortSignal
) : Promise<void>

Resolves once the given shard should be allowed to identify, or rejects if the operation was aborted.