diff --git a/src/rest/process_request_headers.ts b/src/rest/process_request_headers.ts index bb855d616..f11bdc0bb 100644 --- a/src/rest/process_request_headers.ts +++ b/src/rest/process_request_headers.ts @@ -56,7 +56,7 @@ export function processRequestHeaders(url: string, headers: Headers) { } } - if (ratelimited && rest.processingRateLimitedPaths) { + if (ratelimited && !rest.processingRateLimitedPaths) { rest.processRateLimitedPaths(); } return ratelimited ? bucketId : undefined;