@discordjs/rest 3.0.0-dev.1748174699-c1f5bb2fb → 3.0.0-dev.1748285947-78d512c34
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 +1 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/web.d.mts +1 -7
- package/dist/web.d.ts +1 -7
- package/dist/web.js +2 -2
- package/dist/web.js.map +1 -1
- package/dist/web.mjs +2 -2
- package/dist/web.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -371,8 +371,6 @@ declare enum RequestMethod {
|
|
|
371
371
|
type RouteLike = `/${string}`;
|
|
372
372
|
/**
|
|
373
373
|
* Internal request options
|
|
374
|
-
*
|
|
375
|
-
* @internal
|
|
376
374
|
*/
|
|
377
375
|
interface InternalRequest extends RequestData {
|
|
378
376
|
fullRoute: RouteLike;
|
|
@@ -383,8 +381,6 @@ interface HandlerRequestData extends Pick<InternalRequest, 'body' | 'files' | 's
|
|
|
383
381
|
}
|
|
384
382
|
/**
|
|
385
383
|
* Parsed route data for an endpoint
|
|
386
|
-
*
|
|
387
|
-
* @internal
|
|
388
384
|
*/
|
|
389
385
|
interface RouteData {
|
|
390
386
|
bucketRoute: string;
|
|
@@ -393,8 +389,6 @@ interface RouteData {
|
|
|
393
389
|
}
|
|
394
390
|
/**
|
|
395
391
|
* Represents a hash and its associated fields
|
|
396
|
-
*
|
|
397
|
-
* @internal
|
|
398
392
|
*/
|
|
399
393
|
interface HashData {
|
|
400
394
|
lastAccess: number;
|
|
@@ -916,4 +910,4 @@ declare function calculateUserDefaultAvatarIndex(userId: Snowflake): number;
|
|
|
916
910
|
*/
|
|
917
911
|
declare const version: string;
|
|
918
912
|
|
|
919
|
-
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, AUTH_UUID_NAMESPACE, type AuthData, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
|
913
|
+
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, AUTH_UUID_NAMESPACE, type AuthData, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordError, type DiscordErrorData, type DiscordErrorFieldInformation, type DiscordErrorGroupWrapper, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type IHandler, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -371,8 +371,6 @@ declare enum RequestMethod {
|
|
|
371
371
|
type RouteLike = `/${string}`;
|
|
372
372
|
/**
|
|
373
373
|
* Internal request options
|
|
374
|
-
*
|
|
375
|
-
* @internal
|
|
376
374
|
*/
|
|
377
375
|
interface InternalRequest extends RequestData {
|
|
378
376
|
fullRoute: RouteLike;
|
|
@@ -383,8 +381,6 @@ interface HandlerRequestData extends Pick<InternalRequest, 'body' | 'files' | 's
|
|
|
383
381
|
}
|
|
384
382
|
/**
|
|
385
383
|
* Parsed route data for an endpoint
|
|
386
|
-
*
|
|
387
|
-
* @internal
|
|
388
384
|
*/
|
|
389
385
|
interface RouteData {
|
|
390
386
|
bucketRoute: string;
|
|
@@ -393,8 +389,6 @@ interface RouteData {
|
|
|
393
389
|
}
|
|
394
390
|
/**
|
|
395
391
|
* Represents a hash and its associated fields
|
|
396
|
-
*
|
|
397
|
-
* @internal
|
|
398
392
|
*/
|
|
399
393
|
interface HashData {
|
|
400
394
|
lastAccess: number;
|
|
@@ -916,4 +910,4 @@ declare function calculateUserDefaultAvatarIndex(userId: Snowflake): number;
|
|
|
916
910
|
*/
|
|
917
911
|
declare const version: string;
|
|
918
912
|
|
|
919
|
-
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, AUTH_UUID_NAMESPACE, type AuthData, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordErrorData, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
|
913
|
+
export { ALLOWED_EXTENSIONS, ALLOWED_SIZES, ALLOWED_STICKER_EXTENSIONS, type APIRequest, AUTH_UUID_NAMESPACE, type AuthData, type BaseImageURLOptions, BurstHandlerMajorIdKey, CDN, DefaultRestOptions, DefaultUserAgent, DefaultUserAgentAppendix, DiscordAPIError, type DiscordError, type DiscordErrorData, type DiscordErrorFieldInformation, type DiscordErrorGroupWrapper, type GetRateLimitOffsetFunction, HTTPError, type HandlerRequestData, type HashData, type IHandler, type ImageExtension, type ImageURLOptions, type InternalRequest, type InvalidRequestWarningData, type MakeURLOptions, type OAuthErrorData, OverwrittenMimeTypes, REST, RESTEvents, type RESTOptions, type RateLimitData, RateLimitError, type RateLimitQueueFilter, type RawFile, type RequestBody, type RequestData, type RequestHeaders, RequestMethod, type ResponseLike, type RestEvents, type RestEventsMap, type RouteData, type RouteLike, type StickerExtension, calculateUserDefaultAvatarIndex, makeURLSearchParams, parseResponse, version };
|
package/dist/index.js
CHANGED
|
@@ -127,7 +127,7 @@ var import_v102 = require("discord-api-types/v10");
|
|
|
127
127
|
// src/lib/utils/constants.ts
|
|
128
128
|
var import_util = require("@discordjs/util");
|
|
129
129
|
var import_v10 = require("discord-api-types/v10");
|
|
130
|
-
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.
|
|
130
|
+
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1748285947-78d512c34)`;
|
|
131
131
|
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
|
|
132
132
|
var DefaultRestOptions = {
|
|
133
133
|
agent: null,
|
|
@@ -1469,7 +1469,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
|
|
1471
1471
|
// src/shared.ts
|
|
1472
|
-
var version = "3.0.0-dev.
|
|
1472
|
+
var version = "3.0.0-dev.1748285947-78d512c34";
|
|
1473
1473
|
|
|
1474
1474
|
// src/index.ts
|
|
1475
1475
|
globalThis.FormData ??= import_undici2.FormData;
|