mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
Merge branch 'main' of https://github.com/discordeno/discordeno into main
This commit is contained in:
@@ -119,10 +119,9 @@ export async function processQueue(id: string) {
|
||||
break;
|
||||
}
|
||||
|
||||
queuedRequest.request.reject?.({
|
||||
status: response.status,
|
||||
body: JSON.stringify({ error }),
|
||||
});
|
||||
queuedRequest.request.reject?.(
|
||||
new Error(`[${response.status}] ${error}`),
|
||||
);
|
||||
|
||||
// If Rate limited should not remove from queue
|
||||
if (response.status !== 429) queue.shift();
|
||||
|
||||
Reference in New Issue
Block a user