RouteKey
Defined in: packages/rest/src/route.ts:18
Identity of a request as Discord’s rate limiter sees it.
route is the shape of the endpoint (ids replaced by :id), which is what
Discord returns a bucket hash for. major is the resource that gives an
endpoint its own independent limit. Both are needed: the hash alone would
make two channels share one counter.
Properties
Section titled “Properties”major:
string
Defined in: packages/rest/src/route.ts:26
Major parameter scoping the limit (channel, guild, webhook id[:token]).
method
Section titled “method”method:
string
Defined in: packages/rest/src/route.ts:20
Uppercased HTTP method.
path:
string
Defined in: packages/rest/src/route.ts:22
Raw request path, without query string.
route:
string
Defined in: packages/rest/src/route.ts:24
Normalized METHOD:/path/:id route used for bucket-hash lookup.