tris lovely typos

This commit is contained in:
Skillz4Killz
2021-10-25 18:35:39 +00:00
committed by GitHub
parent 4d33e1f68b
commit a42ca52c06
102 changed files with 331 additions and 277 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { RestManager } from "../bot.ts";
export function cleanupQueues(rest: RestManager) {
for (const [key, queue] of rest.pathQueues) {
rest.debug(`[REST - cleanupQueues] Running for of loop. ${key}`);
if (queue.length) continue;
if (queue.requests.length) continue;
// REMOVE IT FROM CACHE
rest.pathQueues.delete(key);
}
+1 -1
View File
@@ -57,7 +57,7 @@ export function processRequestHeaders(rest: RestManager, url: string, headers: H
}
if (ratelimited && !rest.processingRateLimitedPaths) {
rest.processRateLimitedPaths();
rest.processRateLimitedPaths(rest);
}
return ratelimited ? bucketId : undefined;
}
+2 -1
View File
@@ -1,4 +1,5 @@
import { RestManager } from "../bot.ts";
import { SnakeCasedPropertiesDeep } from "../types/util.ts";
import { API_VERSION, BASE_URL, IMAGE_BASE_URL } from "../util/constants.ts";
export async function runMethod<T = any>(
@@ -8,7 +9,7 @@ export async function runMethod<T = any>(
body?: unknown,
retryCount = 0,
bucketId?: string
): Promise<T> {
): Promise<SnakeCasedPropertiesDeep<T>> {
rest.debug(
`[REST - RequestCreate] Method: ${method} | URL: ${url} | Retry Count: ${retryCount} | Bucket ID: ${bucketId} | Body: ${JSON.stringify(
body