ReserveOptions
Defined in: packages/rest/src/store.ts:43
Options for RateLimitStore.reserve.
Properties
Section titled “Properties”global?
Section titled “global?”
optionalglobal?:string
Defined in: packages/rest/src/store.ts:45
Global-limit scope to check in the same atomic step, if any.
globalLimit?
Section titled “globalLimit?”
optionalglobalLimit?: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.
probeMs?
Section titled “probeMs?”
optionalprobeMs?:number
Defined in: packages/rest/src/store.ts:47
How long a probe may hold an unknown bucket before others may try (ms).