@discordjs/rest 3.0.0-dev.1749428102-4e0beff17 → 3.0.0-dev.1750248355-127bb5963
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.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/web.d.mts +4 -4
- package/dist/web.d.ts +4 -4
- package/dist/web.js +6 -6
- package/dist/web.js.map +1 -1
- package/dist/web.mjs +6 -6
- package/dist/web.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -692,8 +692,8 @@ declare class DiscordAPIError extends Error {
|
|
|
692
692
|
* @param rawError - The error reported by Discord
|
|
693
693
|
* @param code - The error code reported by Discord
|
|
694
694
|
* @param status - The status code of the response
|
|
695
|
-
* @param method - The method of the request that
|
|
696
|
-
* @param url - The url of the request that
|
|
695
|
+
* @param method - The method of the request that errored
|
|
696
|
+
* @param url - The url of the request that errored
|
|
697
697
|
* @param bodyData - The unparsed data for the request that errored
|
|
698
698
|
*/
|
|
699
699
|
constructor(rawError: DiscordErrorData | OAuthErrorData, code: number | string, status: number, method: string, url: string, bodyData: Pick<InternalRequest, 'body' | 'files'>);
|
|
@@ -717,8 +717,8 @@ declare class HTTPError extends Error {
|
|
|
717
717
|
/**
|
|
718
718
|
* @param status - The status code of the response
|
|
719
719
|
* @param statusText - The status text of the response
|
|
720
|
-
* @param method - The method of the request that
|
|
721
|
-
* @param url - The url of the request that
|
|
720
|
+
* @param method - The method of the request that errored
|
|
721
|
+
* @param url - The url of the request that errored
|
|
722
722
|
* @param bodyData - The unparsed data for the request that errored
|
|
723
723
|
*/
|
|
724
724
|
constructor(status: number, statusText: string, method: string, url: string, bodyData: Pick<InternalRequest, 'body' | 'files'>);
|
package/dist/index.d.ts
CHANGED
|
@@ -692,8 +692,8 @@ declare class DiscordAPIError extends Error {
|
|
|
692
692
|
* @param rawError - The error reported by Discord
|
|
693
693
|
* @param code - The error code reported by Discord
|
|
694
694
|
* @param status - The status code of the response
|
|
695
|
-
* @param method - The method of the request that
|
|
696
|
-
* @param url - The url of the request that
|
|
695
|
+
* @param method - The method of the request that errored
|
|
696
|
+
* @param url - The url of the request that errored
|
|
697
697
|
* @param bodyData - The unparsed data for the request that errored
|
|
698
698
|
*/
|
|
699
699
|
constructor(rawError: DiscordErrorData | OAuthErrorData, code: number | string, status: number, method: string, url: string, bodyData: Pick<InternalRequest, 'body' | 'files'>);
|
|
@@ -717,8 +717,8 @@ declare class HTTPError extends Error {
|
|
|
717
717
|
/**
|
|
718
718
|
* @param status - The status code of the response
|
|
719
719
|
* @param statusText - The status text of the response
|
|
720
|
-
* @param method - The method of the request that
|
|
721
|
-
* @param url - The url of the request that
|
|
720
|
+
* @param method - The method of the request that errored
|
|
721
|
+
* @param url - The url of the request that errored
|
|
722
722
|
* @param bodyData - The unparsed data for the request that errored
|
|
723
723
|
*/
|
|
724
724
|
constructor(status: number, statusText: string, method: string, url: string, bodyData: Pick<InternalRequest, 'body' | 'files'>);
|
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ var import_v102 = require("discord-api-types/v10");
|
|
|
125
125
|
// src/lib/utils/constants.ts
|
|
126
126
|
var import_util = require("@discordjs/util");
|
|
127
127
|
var import_v10 = require("discord-api-types/v10");
|
|
128
|
-
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.
|
|
128
|
+
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1750248355-127bb5963)`;
|
|
129
129
|
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
|
|
130
130
|
var DefaultRestOptions = {
|
|
131
131
|
agent: null,
|
|
@@ -440,8 +440,8 @@ var DiscordAPIError = class _DiscordAPIError extends Error {
|
|
|
440
440
|
* @param rawError - The error reported by Discord
|
|
441
441
|
* @param code - The error code reported by Discord
|
|
442
442
|
* @param status - The status code of the response
|
|
443
|
-
* @param method - The method of the request that
|
|
444
|
-
* @param url - The url of the request that
|
|
443
|
+
* @param method - The method of the request that errored
|
|
444
|
+
* @param url - The url of the request that errored
|
|
445
445
|
* @param bodyData - The unparsed data for the request that errored
|
|
446
446
|
*/
|
|
447
447
|
constructor(rawError, code, status, method, url, bodyData) {
|
|
@@ -498,8 +498,8 @@ var HTTPError = class _HTTPError extends Error {
|
|
|
498
498
|
/**
|
|
499
499
|
* @param status - The status code of the response
|
|
500
500
|
* @param statusText - The status text of the response
|
|
501
|
-
* @param method - The method of the request that
|
|
502
|
-
* @param url - The url of the request that
|
|
501
|
+
* @param method - The method of the request that errored
|
|
502
|
+
* @param url - The url of the request that errored
|
|
503
503
|
* @param bodyData - The unparsed data for the request that errored
|
|
504
504
|
*/
|
|
505
505
|
constructor(status, statusText, method, url, bodyData) {
|
|
@@ -1458,7 +1458,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
1458
1458
|
};
|
|
1459
1459
|
|
|
1460
1460
|
// src/shared.ts
|
|
1461
|
-
var version = "3.0.0-dev.
|
|
1461
|
+
var version = "3.0.0-dev.1750248355-127bb5963";
|
|
1462
1462
|
|
|
1463
1463
|
// src/index.ts
|
|
1464
1464
|
setDefaultStrategy((0, import_util2.shouldUseGlobalFetchAndWebSocket)() ? fetch : makeRequest);
|