mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
chore: upgrade deps (#10824)
This commit is contained in:
@@ -216,6 +216,7 @@ export class SequentialHandler implements IHandler {
|
||||
limit = this.manager.options.globalRequestsPerSecond;
|
||||
timeout = this.manager.globalReset + offset - Date.now();
|
||||
// If this is the first task to reach the global timeout, set the global delay
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
if (!this.manager.globalDelay) {
|
||||
// The global delay function clears the global delay state when it is resolved
|
||||
this.manager.globalDelay = this.globalDelayFor(timeout);
|
||||
|
||||
Reference in New Issue
Block a user