Interface RateLimit

The event sent when the client gets gateway rate limited.

The client is supposed to wait wait milliseconds before sending any more events, otherwise they are disconnected.


Example

{
"op": "RATE_LIMIT",
"d": {
"wait": 1010 // 1.01 seconds
}
}

Hierarchy

  • RateLimit

Properties

Properties

op: "RATE_LIMIT"
wait: number

The amount of milliseconds you have to wait before the rate limit ends