mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
fix rate limits
This commit is contained in:
@@ -96,10 +96,11 @@ export async function processQueue(id: string) {
|
||||
break;
|
||||
}
|
||||
|
||||
queuedRequest.request.reject?.(new Error(`[${response.status}] ${error}`));
|
||||
|
||||
// If Rate limited should not remove from queue
|
||||
if (response.status !== 429) queue.shift();
|
||||
if (response.status !== 429) {
|
||||
queuedRequest.request.reject?.(new Error(`[${response.status}] ${error}`));
|
||||
queue.shift();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user