types: remove entire types (#684)

This commit is contained in:
ITOH
2021-03-23 15:14:26 +00:00
committed by GitHub
parent 10cb9d7eb9
commit c91c9d0870
195 changed files with 0 additions and 7043 deletions
-25
View File
@@ -1,10 +1,4 @@
import { authorization, eventHandlers, restAuthorization } from "../bot.ts";
import {
Errors,
FileContent,
HttpResponseCode,
RequestMethods,
} from "../types/mod.ts";
import {
API_VERSION,
BASE_URL,
@@ -19,25 +13,6 @@ const ratelimitedPaths = new Map<string, RateLimitedPath>();
let globallyRateLimited = false;
let queueInProcess = false;
export interface QueuedRequest {
callback: () => Promise<
void | {
// deno-lint-ignore no-explicit-any
rateLimited: any;
beforeFetch: boolean;
bucketID?: string | null;
}
>;
bucketID?: string | null;
url: string;
}
export interface RateLimitedPath {
url: string;
resetTimestamp: number;
bucketID: string | null;
}
async function processRateLimitedPaths() {
const now = Date.now();
ratelimitedPaths.forEach((value, key) => {