InvalidRequestBucketOptions
Documentation / @discordeno/bot / InvalidRequestBucketOptions
Interface: InvalidRequestBucketOptions
Defined in: packages/rest/dist/types/invalidBucket.d.ts:10
Properties
current?
optional
current:number
Defined in: packages/rest/dist/types/invalidBucket.d.ts:12
current invalid amount
errorStatuses?
optional
errorStatuses:number
[]
Defined in: packages/rest/dist/types/invalidBucket.d.ts:22
The request statuses that count as an invalid request.
interval?
optional
interval:number
Defined in: packages/rest/dist/types/invalidBucket.d.ts:16
The time that discord allows to make the max number of invalid requests. Defaults to 10 minutes
logger?
optional
logger:Pick
<{debug
: (...args
) =>void
;error
: (...args
) =>void
;fatal
: (...args
) =>void
;info
: (...args
) =>void
;log
: (level
, ...args
) =>void
;setDepth
: (level
) =>void
;setLevel
: (level
) =>void
;warn
: (...args
) =>void
; },"debug"
|"info"
|"warn"
|"error"
|"fatal"
>
Defined in: packages/rest/dist/types/invalidBucket.d.ts:26
The logger that will be used for the bucket
max?
optional
max:number
Defined in: packages/rest/dist/types/invalidBucket.d.ts:14
max invalid requests allowed until ban. Defaults to 10,000
requested?
optional
requested:number
Defined in: packages/rest/dist/types/invalidBucket.d.ts:24
The amount of requests that were requested from this bucket.
resetAt?
optional
resetAt:number
Defined in: packages/rest/dist/types/invalidBucket.d.ts:18
When the timeout for the bucket has started at.
safety?
optional
safety:number
Defined in: packages/rest/dist/types/invalidBucket.d.ts:20
how safe to be from max. Defaults to 1