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