@discordjs/rest 3.0.0-dev.1745540001-8e4e319c2 → 3.0.0-dev.1745626385-8f375275c

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 CHANGED
@@ -650,6 +650,12 @@ declare class CDN {
650
650
  * @param options - Optional options for the cover image
651
651
  */
652
652
  guildScheduledEventCover(scheduledEventId: string, coverHash: string, options?: Readonly<BaseImageURLOptions>): string;
653
+ /**
654
+ * Generates a URL for a soundboard sound.
655
+ *
656
+ * @param soundId - The soundboard sound id
657
+ */
658
+ soundboardSound(soundId: string): string;
653
659
  /**
654
660
  * Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
655
661
  *
package/dist/index.d.ts CHANGED
@@ -650,6 +650,12 @@ declare class CDN {
650
650
  * @param options - Optional options for the cover image
651
651
  */
652
652
  guildScheduledEventCover(scheduledEventId: string, coverHash: string, options?: Readonly<BaseImageURLOptions>): string;
653
+ /**
654
+ * Generates a URL for a soundboard sound.
655
+ *
656
+ * @param soundId - The soundboard sound id
657
+ */
658
+ soundboardSound(soundId: string): string;
653
659
  /**
654
660
  * Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
655
661
  *
package/dist/index.js CHANGED
@@ -121,10 +121,13 @@ async function resolveBody(body) {
121
121
  }
122
122
  __name(resolveBody, "resolveBody");
123
123
 
124
+ // src/lib/CDN.ts
125
+ var import_v102 = require("discord-api-types/v10");
126
+
124
127
  // src/lib/utils/constants.ts
125
128
  var import_util = require("@discordjs/util");
126
129
  var import_v10 = require("discord-api-types/v10");
127
- var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1745540001-8e4e319c2)`;
130
+ var DefaultUserAgent = `DiscordBot (https://discord.js.org, 3.0.0-dev.1745626385-8f375275c)`;
128
131
  var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
129
132
  var DefaultRestOptions = {
130
133
  agent: null,
@@ -375,6 +378,14 @@ var CDN = class {
375
378
  guildScheduledEventCover(scheduledEventId, coverHash, options) {
376
379
  return this.makeURL(`/guild-events/${scheduledEventId}/${coverHash}`, options);
377
380
  }
381
+ /**
382
+ * Generates a URL for a soundboard sound.
383
+ *
384
+ * @param soundId - The soundboard sound id
385
+ */
386
+ soundboardSound(soundId) {
387
+ return `${this.cdn}${import_v102.CDNRoutes.soundboardSound(soundId)}`;
388
+ }
378
389
  /**
379
390
  * Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
380
391
  *
@@ -1458,7 +1469,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
1458
1469
  };
1459
1470
 
1460
1471
  // src/shared.ts
1461
- var version = "3.0.0-dev.1745540001-8e4e319c2";
1472
+ var version = "3.0.0-dev.1745626385-8f375275c";
1462
1473
 
1463
1474
  // src/index.ts
1464
1475
  globalThis.FormData ??= import_undici2.FormData;