@discordjs/rest 3.0.0-dev.1748650418-ef2c1bfa7 → 3.0.0-dev.1748909649-d40ceedad

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -86,7 +86,7 @@ import { CDNRoutes } from "discord-api-types/v10";
86
86
  // src/lib/utils/constants.ts
87
87
  import { getUserAgentAppendix } from "@discordjs/util";
88
88
  import { APIVersion } from "discord-api-types/v10";
89
- var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1748650418-ef2c1bfa7)`;
89
+ var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1748909649-d40ceedad)`;
90
90
  var DefaultUserAgentAppendix = getUserAgentAppendix();
91
91
  var DefaultRestOptions = {
92
92
  agent: null,
@@ -493,31 +493,19 @@ var RateLimitError = class _RateLimitError extends Error {
493
493
  retryAfter;
494
494
  sublimitTimeout;
495
495
  scope;
496
- constructor({
497
- timeToReset,
498
- limit,
499
- method,
500
- hash,
501
- url,
502
- route,
503
- majorParameter,
504
- global,
505
- retryAfter,
506
- sublimitTimeout,
507
- scope
508
- }) {
496
+ constructor(data) {
509
497
  super();
510
- this.timeToReset = timeToReset;
511
- this.limit = limit;
512
- this.method = method;
513
- this.hash = hash;
514
- this.url = url;
515
- this.route = route;
516
- this.majorParameter = majorParameter;
517
- this.global = global;
518
- this.retryAfter = retryAfter;
519
- this.sublimitTimeout = sublimitTimeout;
520
- this.scope = scope;
498
+ this.timeToReset = data.timeToReset;
499
+ this.limit = data.limit;
500
+ this.method = data.method;
501
+ this.hash = data.hash;
502
+ this.url = data.url;
503
+ this.route = data.route;
504
+ this.majorParameter = data.majorParameter;
505
+ this.global = data.global;
506
+ this.retryAfter = data.retryAfter;
507
+ this.sublimitTimeout = data.sublimitTimeout;
508
+ this.scope = data.scope;
521
509
  }
522
510
  /**
523
511
  * The name of the error
@@ -1431,7 +1419,7 @@ var REST = class _REST extends AsyncEventEmitter {
1431
1419
  };
1432
1420
 
1433
1421
  // src/shared.ts
1434
- var version = "3.0.0-dev.1748650418-ef2c1bfa7";
1422
+ var version = "3.0.0-dev.1748909649-d40ceedad";
1435
1423
 
1436
1424
  // src/index.ts
1437
1425
  globalThis.FormData ??= FormData2;