Skip to content

ReserveOptions

Defined in: packages/rest/src/store.ts:43

Options for RateLimitStore.reserve.

optional global?: string

Defined in: packages/rest/src/store.ts:45

Global-limit scope to check in the same atomic step, if any.


optional globalLimit?: number

Defined in: packages/rest/src/store.ts:53

Most requests per second the global scope may send, counted in the same atomic step (Discord’s global limit, 50 for most bots). Omitted or 0: only a recorded global 429 is enforced.


optional probeMs?: number

Defined in: packages/rest/src/store.ts:47

How long a probe may hold an unknown bucket before others may try (ms).