mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
fix: ref delay for rate limited requests (#7239)
This commit is contained in:
@@ -252,7 +252,7 @@ export class SequentialHandler {
|
|||||||
// Set RateLimitData based on the route-specific limit
|
// Set RateLimitData based on the route-specific limit
|
||||||
limit = this.limit;
|
limit = this.limit;
|
||||||
timeout = this.timeToReset;
|
timeout = this.timeToReset;
|
||||||
delay = sleep(timeout, undefined, { ref: false });
|
delay = sleep(timeout);
|
||||||
}
|
}
|
||||||
const rateLimitData: RateLimitData = {
|
const rateLimitData: RateLimitData = {
|
||||||
timeToReset: timeout,
|
timeToReset: timeout,
|
||||||
|
|||||||
Reference in New Issue
Block a user