Skip to main content

createInvalidRequestBucket

@discordeno/botDocs


Documentation / @discordeno/bot / createInvalidRequestBucket

Function: createInvalidRequestBucket()

createInvalidRequestBucket(options): InvalidRequestBucket

A invalid request bucket is used in a similar manner as a leaky bucket but a invalid request bucket can be refilled as needed. It's purpose is to make sure the bot does not hit the limit to getting a 1 hr ban.

Parameters

options: InvalidRequestBucketOptions

The options used to configure this bucket.

Returns

InvalidRequestBucket

RefillingBucket

Defined in

packages/rest/dist/types/invalidBucket.d.ts:9