docs: add missing, fix existing (#10842)

* docs: add missing, fix existing

* refactor: new stuff

* fix: requested changes

* fix: use `@link` for `@mixes`

Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>

* chore: disable bad eslint rule

---------

Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Almeida
2025-06-02 18:35:43 +01:00
committed by GitHub
parent 8d50e92516
commit e094faf225
62 changed files with 377 additions and 139 deletions

View File

@@ -23,31 +23,19 @@ export class RateLimitError extends Error implements RateLimitData {
public scope: RateLimitData['scope'];
public constructor({
timeToReset,
limit,
method,
hash,
url,
route,
majorParameter,
global,
retryAfter,
sublimitTimeout,
scope,
}: RateLimitData) {
public constructor(data: RateLimitData) {
super();
this.timeToReset = timeToReset;
this.limit = limit;
this.method = method;
this.hash = hash;
this.url = url;
this.route = route;
this.majorParameter = majorParameter;
this.global = global;
this.retryAfter = retryAfter;
this.sublimitTimeout = sublimitTimeout;
this.scope = scope;
this.timeToReset = data.timeToReset;
this.limit = data.limit;
this.method = data.method;
this.hash = data.hash;
this.url = data.url;
this.route = data.route;
this.majorParameter = data.majorParameter;
this.global = data.global;
this.retryAfter = data.retryAfter;
this.sublimitTimeout = data.sublimitTimeout;
this.scope = data.scope;
}
/**