mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
tris lovely typos
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user