diff --git a/packages/rest/src/lib/handlers/SequentialHandler.ts b/packages/rest/src/lib/handlers/SequentialHandler.ts index 60ca20851..c28ec445d 100644 --- a/packages/rest/src/lib/handlers/SequentialHandler.ts +++ b/packages/rest/src/lib/handlers/SequentialHandler.ts @@ -137,7 +137,7 @@ export class SequentialHandler implements IHandler { * @param time - The amount of time to delay all requests for */ private async globalDelayFor(time: number): Promise { - await sleep(time, undefined, { ref: false }); + await sleep(time); this.manager.globalDelay = null; } @@ -460,7 +460,7 @@ export class SequentialHandler implements IHandler { this.#sublimitPromise?.resolve(); this.#sublimitPromise = null; - await sleep(sublimitTimeout, undefined, { ref: false }); + await sleep(sublimitTimeout); let resolve: () => void; // eslint-disable-next-line promise/param-names, no-promise-executor-return const promise = new Promise((res) => (resolve = res));