InvalidRequestBucketOptions
Documentation / @discordeno/rest / InvalidRequestBucketOptions
Interface: InvalidRequestBucketOptions
Defined in: rest/src/invalidBucket.ts:103
Properties
current?
optionalcurrent:number
Defined in: rest/src/invalidBucket.ts:105
current invalid amount
errorStatuses?
optionalerrorStatuses:number[]
Defined in: rest/src/invalidBucket.ts:115
The request statuses that count as an invalid request.
interval?
optionalinterval:number
Defined in: rest/src/invalidBucket.ts:109
The time that discord allows to make the max number of invalid requests. Defaults to 10 minutes
logger?
optionallogger:Pick<{ },"debug"|"info"|"warn"|"error"|"fatal">
Defined in: rest/src/invalidBucket.ts:119
The logger that will be used for the bucket
max?
optionalmax:number
Defined in: rest/src/invalidBucket.ts:107
max invalid requests allowed until ban. Defaults to 10,000
requested?
optionalrequested:number
Defined in: rest/src/invalidBucket.ts:117
The amount of requests that were requested from this bucket.
resetAt?
optionalresetAt:number
Defined in: rest/src/invalidBucket.ts:111
When the timeout for the bucket has started at.
safety?
optionalsafety:number
Defined in: rest/src/invalidBucket.ts:113
how safe to be from max. Defaults to 1