You are reading the documentation for the
next
version of discord.js. Documentation for v13/v14+ has been moved to
old.discordjs.dev
/
docs
/
packages
/
ws
/
main
/
IIdentifyThrottler%3AInterface
Search...
K
ws
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Classes
SimpleContextFetchingStrategy
SimpleIdentifyThrottler
SimpleShardingStrategy
WebSocketManager
WebSocketShard
WorkerBootstrapper
WorkerContextFetchingStrategy
WorkerShardingStrategy
Functions
getInitialSendRateLimitState
managerToFetchingStrategyOptions
Enums
CloseCodes
CompressionMethod
Encoding
WebSocketShardDestroyRecovery
WebSocketShardEvents
WebSocketShardStatus
WorkerReceivePayloadOp
WorkerSendPayloadOp
Interfaces
BootstrapOptions
FetchingStrategyOptions
IContextFetchingStrategy
IdentifyState
IIdentifyThrottler
IShardingStrategy
OptionalWebSocketManagerOptions
RequiredWebSocketManagerOptions
SendRateLimitState
SessionInfo
ShardRange
WebSocketShardDestroyOptions
WorkerData
WorkerShardingStrategyOptions
Types
ManagerShardEventsMap
WebSocketManagerOptions
WebSocketShardEventsMap
WorkerReceivePayload
WorkerSendPayload
Variables
DefaultDeviceProperty
DefaultWebSocketManagerOptions
ImportantGatewayOpcodes
version
IIdentifyThrottler
export declare interface
IIdentifyThrottler
export declare interface
IIdentifyThrottler
Summary
IdentifyThrottlers are responsible for dictating when a shard is allowed to identify.
See Also
https://discord.com/developers/docs/topics/gateway#sharding-max-concurrency
Methods
waitForIdentify(shardId, signal)
:
Promise<void>
Resolves once the given shard should be allowed to identify, or rejects if the operation was aborted.
Name
Type
Optional
Description
shardId
number
No
None
signal
AbortSignal
No
None