mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
stuff
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { rest } from "./rest.ts";
|
||||
import { RestManager } from "../bot.ts";
|
||||
|
||||
/** Check the rate limits for a url or a bucket. */
|
||||
export function checkRateLimits(url: string) {
|
||||
export function checkRateLimits(rest: RestManager, url: string) {
|
||||
const ratelimited = rest.ratelimitedPaths.get(url);
|
||||
const global = rest.ratelimitedPaths.get("global");
|
||||
const now = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user