Skip to main content
The Deno 2 Release Candidate is here
Learn more
interface InvalidRequestBucketOptions
import { type InvalidRequestBucketOptions } from "https://deno.land/x/discordeno_patched@18.0.2/rest/createInvalidRequestBucket.ts";

Properties

optional
current: number

current invalid amount

optional
max: number

max invalid requests allowed until ban. Defaults to 10,000

optional
interval: number

The time that discord allows to make the max number of invalid requests. Defaults to 10 minutes

optional
timeoutId: number

timer to reset to 0

optional
safety: number

how safe to be from max. Defaults to 1

optional
frozenAt: number

when first request in this period was made

optional
errorStatuses: number[]

The request statuses that count as an invalid request.

optional
requested: number

The amount of requests that were requested from this bucket.