LeakyBucketOptions
Documentation / @discordeno/utils / LeakyBucketOptions
Interface: LeakyBucketOptions
Defined in: packages/utils/src/bucket.ts:119
Properties
logger?
optionallogger:Pick<{debug: (...args) =>void;error: (...args) =>void;fatal: (...args) =>void;info: (...args) =>void;log: (level, ...args) =>void;setLevel: (level) =>void;warn: (...args) =>void; },"debug"|"info"|"warn"|"error"|"fatal">
Defined in: packages/utils/src/bucket.ts:139
The logger that the leaky bucket will use
Default
logger // The logger exported by @discordeno/utils
max?
optionalmax:number
Defined in: packages/utils/src/bucket.ts:124
Max requests allowed at once.
Default
1
refillAmount?
optionalrefillAmount:number
Defined in: packages/utils/src/bucket.ts:134
Amount of requests to refill at each interval.
Default
1
refillInterval?
optionalrefillInterval:number
Defined in: packages/utils/src/bucket.ts:129
Interval in milliseconds between refills.
Default
5000