mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
refactor(WebSocketShard): payload sending (#10098)
* refactor(WebSocketShard): payload sending * fix: adjust ratelimit state onopen * fix: use >= * chore: spelling Co-authored-by: space <spaceeec@yahoo.com> --------- Co-authored-by: space <spaceeec@yahoo.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -71,7 +71,7 @@ export const ImportantGatewayOpcodes = new Set([
|
||||
|
||||
export function getInitialSendRateLimitState(): SendRateLimitState {
|
||||
return {
|
||||
remaining: 120,
|
||||
sent: 0,
|
||||
resetAt: Date.now() + 60_000,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user