@discordjs/rest 3.0.0-dev.1752624898-d03cacbde → 3.0.0-dev.1752711324-1dfc511e4
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 +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/dist/web.d.mts +8 -0
- package/dist/web.d.ts +8 -0
- package/dist/web.js +12 -2
- package/dist/web.js.map +1 -1
- package/dist/web.mjs +12 -2
- package/dist/web.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -655,6 +655,14 @@ declare class CDN {
|
|
|
655
655
|
* @param soundId - The soundboard sound id
|
|
656
656
|
*/
|
|
657
657
|
soundboardSound(soundId: string): string;
|
|
658
|
+
/**
|
|
659
|
+
* Generates a URL for a guild tag badge.
|
|
660
|
+
*
|
|
661
|
+
* @param guildId - The guild id
|
|
662
|
+
* @param badgeHash - The hash of the badge
|
|
663
|
+
* @param options - Optional options for the badge
|
|
664
|
+
*/
|
|
665
|
+
guildTagBadge(guildId: string, badgeHash: string, options?: Readonly<BaseImageURLOptions>): string;
|
|
658
666
|
/**
|
|
659
667
|
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
|
660
668
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -655,6 +655,14 @@ declare class CDN {
|
|
|
655
655
|
* @param soundId - The soundboard sound id
|
|
656
656
|
*/
|
|
657
657
|
soundboardSound(soundId: string): string;
|
|
658
|
+
/**
|
|
659
|
+
* Generates a URL for a guild tag badge.
|
|
660
|
+
*
|
|
661
|
+
* @param guildId - The guild id
|
|
662
|
+
* @param badgeHash - The hash of the badge
|
|
663
|
+
* @param options - Optional options for the badge
|
|
664
|
+
*/
|
|
665
|
+
guildTagBadge(guildId: string, badgeHash: string, options?: Readonly<BaseImageURLOptions>): string;
|
|
658
666
|
/**
|
|
659
667
|
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
|
660
668
|
*
|
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.1752711324-1dfc511e4)`;
|
|
129
129
|
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
|
|
130
130
|
var DefaultRestOptions = {
|
|
131
131
|
agent: null,
|
|
@@ -385,6 +385,16 @@ var CDN = class {
|
|
|
385
385
|
soundboardSound(soundId) {
|
|
386
386
|
return `${this.cdn}${import_v102.CDNRoutes.soundboardSound(soundId)}`;
|
|
387
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* Generates a URL for a guild tag badge.
|
|
390
|
+
*
|
|
391
|
+
* @param guildId - The guild id
|
|
392
|
+
* @param badgeHash - The hash of the badge
|
|
393
|
+
* @param options - Optional options for the badge
|
|
394
|
+
*/
|
|
395
|
+
guildTagBadge(guildId, badgeHash, options) {
|
|
396
|
+
return this.makeURL(`/guild-tag-badges/${guildId}/${badgeHash}`, options);
|
|
397
|
+
}
|
|
388
398
|
/**
|
|
389
399
|
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
|
390
400
|
*
|
|
@@ -1460,7 +1470,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
1460
1470
|
};
|
|
1461
1471
|
|
|
1462
1472
|
// src/shared.ts
|
|
1463
|
-
var version = "3.0.0-dev.
|
|
1473
|
+
var version = "3.0.0-dev.1752711324-1dfc511e4";
|
|
1464
1474
|
|
|
1465
1475
|
// src/index.ts
|
|
1466
1476
|
setDefaultStrategy((0, import_util2.shouldUseGlobalFetchAndWebSocket)() ? fetch : makeRequest);
|