@discordjs/core 2.0.1-dev.1730030702-ed78e4570 → 2.1.0-dev.1730808317-1184b38d3

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/http-only.js CHANGED
@@ -33,6 +33,7 @@ __export(http_only_exports, {
33
33
  OAuth2API: () => OAuth2API,
34
34
  PollAPI: () => PollAPI,
35
35
  RoleConnectionsAPI: () => RoleConnectionsAPI,
36
+ SoundboardSoundsAPI: () => SoundboardSoundsAPI,
36
37
  StageInstancesAPI: () => StageInstancesAPI,
37
38
  StickersAPI: () => StickersAPI,
38
39
  ThreadsAPI: () => ThreadsAPI,
@@ -780,6 +781,20 @@ var ChannelsAPI = class {
780
781
  signal
781
782
  });
782
783
  }
784
+ /**
785
+ * Sends a soundboard sound in a channel
786
+ *
787
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound}
788
+ * @param channelId - The id of the channel to send the soundboard sound in
789
+ * @param body - The data for sending the soundboard sound
790
+ * @param options - The options for sending the soundboard sound
791
+ */
792
+ async sendSoundboardSound(channelId, body, { signal } = {}) {
793
+ return this.rest.post(import_v103.Routes.sendSoundboardSound(channelId), {
794
+ body,
795
+ signal
796
+ });
797
+ }
783
798
  };
784
799
 
785
800
  // src/api/guild.ts
@@ -1808,6 +1823,73 @@ var GuildsAPI = class {
1808
1823
  signal
1809
1824
  });
1810
1825
  }
1826
+ /**
1827
+ * Fetches all the soundboard sounds for a guild
1828
+ *
1829
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#list-guild-soundboard-sounds}
1830
+ * @param guildId - The id of the guild to fetch the soundboard sounds for
1831
+ * @param options - The options for fetching the soundboard sounds
1832
+ */
1833
+ async getSoundboardSounds(guildId, { signal } = {}) {
1834
+ return this.rest.get(import_v105.Routes.guildSoundboardSounds(guildId), {
1835
+ signal
1836
+ });
1837
+ }
1838
+ /**
1839
+ * Fetches a soundboard sound for a guild
1840
+ *
1841
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#get-guild-soundboard-sound}
1842
+ * @param guildId - The id of the guild to fetch the soundboard sound for
1843
+ * @param soundId - The id of the soundboard sound to fetch
1844
+ * @param options - The options for fetching the soundboard sound
1845
+ */
1846
+ async getSoundboardSound(guildId, soundId, { signal } = {}) {
1847
+ return this.rest.get(import_v105.Routes.guildSoundboardSound(guildId, soundId), {
1848
+ signal
1849
+ });
1850
+ }
1851
+ /**
1852
+ * Creates a new soundboard sound for a guild
1853
+ *
1854
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#create-guild-soundboard-sound}
1855
+ * @param guildId - The id of the guild to create the soundboard sound for
1856
+ * @param body - The data for creating the soundboard sound
1857
+ * @param options - The options for creating the soundboard sound
1858
+ */
1859
+ async createSoundboardSound(guildId, body, { reason, signal } = {}) {
1860
+ return this.rest.post(import_v105.Routes.guildSoundboardSounds(guildId), {
1861
+ body,
1862
+ reason,
1863
+ signal
1864
+ });
1865
+ }
1866
+ /**
1867
+ * Edits a soundboard sound for a guild
1868
+ *
1869
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#modify-guild-soundboard-sound}
1870
+ * @param guildId - The id of the guild to edit the soundboard sound for
1871
+ * @param soundId - The id of the soundboard sound to edit
1872
+ * @param body - The data for editing the soundboard sound
1873
+ * @param options - The options for editing the soundboard sound
1874
+ */
1875
+ async editSoundboardSound(guildId, soundId, body, { reason, signal } = {}) {
1876
+ return this.rest.patch(import_v105.Routes.guildSoundboardSound(guildId, soundId), {
1877
+ body,
1878
+ reason,
1879
+ signal
1880
+ });
1881
+ }
1882
+ /**
1883
+ * Deletes a soundboard sound for a guild
1884
+ *
1885
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#delete-guild-soundboard-sound}
1886
+ * @param guildId - The id of the guild to delete the soundboard sound for
1887
+ * @param soundId - The id of the soundboard sound to delete
1888
+ * @param options - The options for deleting the soundboard sound
1889
+ */
1890
+ async deleteSoundboardSound(guildId, soundId, { reason, signal } = {}) {
1891
+ await this.rest.delete(import_v105.Routes.guildSoundboardSound(guildId, soundId), { reason, signal });
1892
+ }
1811
1893
  };
1812
1894
 
1813
1895
  // src/api/interactions.ts
@@ -2061,16 +2143,44 @@ var MonetizationAPI = class {
2061
2143
  /**
2062
2144
  * Fetches the SKUs for an application.
2063
2145
  *
2064
- * @see {@link https://discord.com/developers/docs/monetization/skus#list-skus}
2146
+ * @see {@link https://discord.com/developers/docs/resources/sku#list-skus}
2147
+ * @param applicationId - The application id to fetch SKUs for
2065
2148
  * @param options - The options for fetching the SKUs.
2066
2149
  */
2067
2150
  async getSKUs(applicationId, { signal } = {}) {
2068
2151
  return this.rest.get(import_v108.Routes.skus(applicationId), { signal });
2069
2152
  }
2153
+ /**
2154
+ * Fetches subscriptions for an SKU.
2155
+ *
2156
+ * @see {@link https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions}
2157
+ * @param skuId - The SKU id to fetch subscriptions for
2158
+ * @param query - The query options for fetching subscriptions
2159
+ * @param options - The options for fetching subscriptions
2160
+ */
2161
+ async getSKUSubscriptions(skuId, query, { signal } = {}) {
2162
+ return this.rest.get(import_v108.Routes.skuSubscriptions(skuId), {
2163
+ signal,
2164
+ query: (0, import_rest5.makeURLSearchParams)(query)
2165
+ });
2166
+ }
2167
+ /**
2168
+ * Fetches a subscription for an SKU.
2169
+ *
2170
+ * @see {@link https://discord.com/developers/docs/resources/subscription#get-sku-subscription}
2171
+ * @param skuId - The SKU id to fetch subscription for
2172
+ * @param subscriptionId - The subscription id to fetch
2173
+ * @param options - The options for fetching the subscription
2174
+ */
2175
+ async getSKUSubscription(skuId, subscriptionId, { signal } = {}) {
2176
+ return this.rest.get(import_v108.Routes.skuSubscription(skuId, subscriptionId), {
2177
+ signal
2178
+ });
2179
+ }
2070
2180
  /**
2071
2181
  * Fetches the entitlements for an application.
2072
2182
  *
2073
- * @see {@link https://discord.com/developers/docs/monetization/entitlements#list-entitlements}
2183
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#list-entitlements}
2074
2184
  * @param applicationId - The application id to fetch entitlements for
2075
2185
  * @param query - The query options for fetching entitlements
2076
2186
  * @param options - The options for fetching entitlements
@@ -2084,7 +2194,7 @@ var MonetizationAPI = class {
2084
2194
  /**
2085
2195
  * Creates a test entitlement for an application's SKU.
2086
2196
  *
2087
- * @see {@link https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement}
2197
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#create-test-entitlement}
2088
2198
  * @param applicationId - The application id to create the entitlement for
2089
2199
  * @param body - The data for creating the entitlement
2090
2200
  * @param options - The options for creating the entitlement
@@ -2098,7 +2208,7 @@ var MonetizationAPI = class {
2098
2208
  /**
2099
2209
  * Deletes a test entitlement for an application's SKU.
2100
2210
  *
2101
- * @see {@link https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement}
2211
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#delete-test-entitlement}
2102
2212
  * @param applicationId - The application id to delete the entitlement for
2103
2213
  * @param entitlementId - The entitlement id to delete
2104
2214
  * @param options - The options for deleting the entitlement
@@ -2109,7 +2219,7 @@ var MonetizationAPI = class {
2109
2219
  /**
2110
2220
  * Marks a given entitlement for the user as consumed. Only available for One-Time Purchase consumable SKUs.
2111
2221
  *
2112
- * @see {@link https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement}
2222
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#consume-an-entitlement}
2113
2223
  * @param applicationId - The application id to consume the entitlement for
2114
2224
  * @param entitlementId - The entitlement id to consume
2115
2225
  * @param options - The options for consuming the entitlement
@@ -2319,8 +2429,30 @@ var RoleConnectionsAPI = class {
2319
2429
  }
2320
2430
  };
2321
2431
 
2322
- // src/api/stageInstances.ts
2432
+ // src/api/soundboardSounds.ts
2323
2433
  var import_v1012 = require("discord-api-types/v10");
2434
+ var SoundboardSoundsAPI = class {
2435
+ constructor(rest) {
2436
+ this.rest = rest;
2437
+ }
2438
+ static {
2439
+ __name(this, "SoundboardSoundsAPI");
2440
+ }
2441
+ /**
2442
+ * Fetches all the soundboard default sounds.
2443
+ *
2444
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds}
2445
+ * @param options - The options for fetching the soundboard default sounds.
2446
+ */
2447
+ async getSoundboardDefaultSounds({ signal } = {}) {
2448
+ return this.rest.get(import_v1012.Routes.soundboardDefaultSounds(), {
2449
+ signal
2450
+ });
2451
+ }
2452
+ };
2453
+
2454
+ // src/api/stageInstances.ts
2455
+ var import_v1013 = require("discord-api-types/v10");
2324
2456
  var StageInstancesAPI = class {
2325
2457
  constructor(rest) {
2326
2458
  this.rest = rest;
@@ -2336,7 +2468,7 @@ var StageInstancesAPI = class {
2336
2468
  * @param options - The options for creating the new stage instance
2337
2469
  */
2338
2470
  async create(body, { reason, signal } = {}) {
2339
- return this.rest.post(import_v1012.Routes.stageInstances(), {
2471
+ return this.rest.post(import_v1013.Routes.stageInstances(), {
2340
2472
  body,
2341
2473
  reason,
2342
2474
  signal
@@ -2350,7 +2482,7 @@ var StageInstancesAPI = class {
2350
2482
  * @param options - The options for fetching the stage instance
2351
2483
  */
2352
2484
  async get(channelId, { signal } = {}) {
2353
- return this.rest.get(import_v1012.Routes.stageInstance(channelId), { signal });
2485
+ return this.rest.get(import_v1013.Routes.stageInstance(channelId), { signal });
2354
2486
  }
2355
2487
  /**
2356
2488
  * Edits a stage instance
@@ -2361,7 +2493,7 @@ var StageInstancesAPI = class {
2361
2493
  * @param options - The options for editing the stage instance
2362
2494
  */
2363
2495
  async edit(channelId, body, { reason, signal } = {}) {
2364
- return this.rest.patch(import_v1012.Routes.stageInstance(channelId), {
2496
+ return this.rest.patch(import_v1013.Routes.stageInstance(channelId), {
2365
2497
  body,
2366
2498
  reason,
2367
2499
  signal
@@ -2375,12 +2507,12 @@ var StageInstancesAPI = class {
2375
2507
  * @param options - The options for deleting the stage instance
2376
2508
  */
2377
2509
  async delete(channelId, { reason, signal } = {}) {
2378
- await this.rest.delete(import_v1012.Routes.stageInstance(channelId), { reason, signal });
2510
+ await this.rest.delete(import_v1013.Routes.stageInstance(channelId), { reason, signal });
2379
2511
  }
2380
2512
  };
2381
2513
 
2382
2514
  // src/api/sticker.ts
2383
- var import_v1013 = require("discord-api-types/v10");
2515
+ var import_v1014 = require("discord-api-types/v10");
2384
2516
  var StickersAPI = class {
2385
2517
  constructor(rest) {
2386
2518
  this.rest = rest;
@@ -2396,7 +2528,7 @@ var StickersAPI = class {
2396
2528
  * @param options - The options for fetching the sticker pack
2397
2529
  */
2398
2530
  async getStickerPack(packId, { signal } = {}) {
2399
- return this.rest.get(import_v1013.Routes.stickerPack(packId), { signal });
2531
+ return this.rest.get(import_v1014.Routes.stickerPack(packId), { signal });
2400
2532
  }
2401
2533
  /**
2402
2534
  * Fetches all of the sticker packs
@@ -2405,7 +2537,7 @@ var StickersAPI = class {
2405
2537
  * @param options - The options for fetching the sticker packs
2406
2538
  */
2407
2539
  async getStickers({ signal } = {}) {
2408
- return this.rest.get(import_v1013.Routes.stickerPacks(), { signal });
2540
+ return this.rest.get(import_v1014.Routes.stickerPacks(), { signal });
2409
2541
  }
2410
2542
  /**
2411
2543
  * Fetches all of the sticker packs
@@ -2425,12 +2557,12 @@ var StickersAPI = class {
2425
2557
  * @param options - The options for fetching the sticker
2426
2558
  */
2427
2559
  async get(stickerId, { signal } = {}) {
2428
- return this.rest.get(import_v1013.Routes.sticker(stickerId), { signal });
2560
+ return this.rest.get(import_v1014.Routes.sticker(stickerId), { signal });
2429
2561
  }
2430
2562
  };
2431
2563
 
2432
2564
  // src/api/thread.ts
2433
- var import_v1014 = require("discord-api-types/v10");
2565
+ var import_v1015 = require("discord-api-types/v10");
2434
2566
  var ThreadsAPI = class {
2435
2567
  constructor(rest) {
2436
2568
  this.rest = rest;
@@ -2446,7 +2578,7 @@ var ThreadsAPI = class {
2446
2578
  * @param options - The options for joining the thread
2447
2579
  */
2448
2580
  async join(threadId, { signal } = {}) {
2449
- await this.rest.put(import_v1014.Routes.threadMembers(threadId, "@me"), { signal });
2581
+ await this.rest.put(import_v1015.Routes.threadMembers(threadId, "@me"), { signal });
2450
2582
  }
2451
2583
  /**
2452
2584
  * Adds a member to a thread
@@ -2457,7 +2589,7 @@ var ThreadsAPI = class {
2457
2589
  * @param options - The options for adding the member to the thread
2458
2590
  */
2459
2591
  async addMember(threadId, userId, { signal } = {}) {
2460
- await this.rest.put(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2592
+ await this.rest.put(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2461
2593
  }
2462
2594
  /**
2463
2595
  * Removes the current user from a thread
@@ -2467,7 +2599,7 @@ var ThreadsAPI = class {
2467
2599
  * @param options - The options for leaving the thread
2468
2600
  */
2469
2601
  async leave(threadId, { signal } = {}) {
2470
- await this.rest.delete(import_v1014.Routes.threadMembers(threadId, "@me"), { signal });
2602
+ await this.rest.delete(import_v1015.Routes.threadMembers(threadId, "@me"), { signal });
2471
2603
  }
2472
2604
  /**
2473
2605
  * Removes a member from a thread
@@ -2478,7 +2610,7 @@ var ThreadsAPI = class {
2478
2610
  * @param options - The options for removing the member from the thread
2479
2611
  */
2480
2612
  async removeMember(threadId, userId, { signal } = {}) {
2481
- await this.rest.delete(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2613
+ await this.rest.delete(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2482
2614
  }
2483
2615
  /**
2484
2616
  * Fetches a member of a thread
@@ -2489,7 +2621,7 @@ var ThreadsAPI = class {
2489
2621
  * @param options - The options for fetching the member
2490
2622
  */
2491
2623
  async getMember(threadId, userId, { signal } = {}) {
2492
- return this.rest.get(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2624
+ return this.rest.get(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2493
2625
  }
2494
2626
  /**
2495
2627
  * Fetches all members of a thread
@@ -2499,13 +2631,13 @@ var ThreadsAPI = class {
2499
2631
  * @param options - The options for fetching the members
2500
2632
  */
2501
2633
  async getAllMembers(threadId, { signal } = {}) {
2502
- return this.rest.get(import_v1014.Routes.threadMembers(threadId), { signal });
2634
+ return this.rest.get(import_v1015.Routes.threadMembers(threadId), { signal });
2503
2635
  }
2504
2636
  };
2505
2637
 
2506
2638
  // src/api/user.ts
2507
2639
  var import_rest8 = require("@discordjs/rest");
2508
- var import_v1015 = require("discord-api-types/v10");
2640
+ var import_v1016 = require("discord-api-types/v10");
2509
2641
  var UsersAPI = class {
2510
2642
  constructor(rest) {
2511
2643
  this.rest = rest;
@@ -2521,7 +2653,7 @@ var UsersAPI = class {
2521
2653
  * @param options - The options for fetching the user
2522
2654
  */
2523
2655
  async get(userId, { signal } = {}) {
2524
- return this.rest.get(import_v1015.Routes.user(userId), { signal });
2656
+ return this.rest.get(import_v1016.Routes.user(userId), { signal });
2525
2657
  }
2526
2658
  /**
2527
2659
  * Returns the user object of the requester's account
@@ -2530,7 +2662,7 @@ var UsersAPI = class {
2530
2662
  * @param options - The options for fetching the current user
2531
2663
  */
2532
2664
  async getCurrent({ signal } = {}) {
2533
- return this.rest.get(import_v1015.Routes.user("@me"), { signal });
2665
+ return this.rest.get(import_v1016.Routes.user("@me"), { signal });
2534
2666
  }
2535
2667
  /**
2536
2668
  * Returns a list of partial guild objects the current user is a member of
@@ -2540,7 +2672,7 @@ var UsersAPI = class {
2540
2672
  * @param options - The options for fetching the guilds
2541
2673
  */
2542
2674
  async getGuilds(query = {}, { signal } = {}) {
2543
- return this.rest.get(import_v1015.Routes.userGuilds(), {
2675
+ return this.rest.get(import_v1016.Routes.userGuilds(), {
2544
2676
  query: (0, import_rest8.makeURLSearchParams)(query),
2545
2677
  signal
2546
2678
  });
@@ -2553,7 +2685,7 @@ var UsersAPI = class {
2553
2685
  * @param options - The options for leaving the guild
2554
2686
  */
2555
2687
  async leaveGuild(guildId, { signal } = {}) {
2556
- await this.rest.delete(import_v1015.Routes.userGuild(guildId), { signal });
2688
+ await this.rest.delete(import_v1016.Routes.userGuild(guildId), { signal });
2557
2689
  }
2558
2690
  /**
2559
2691
  * Edits the current user
@@ -2563,7 +2695,7 @@ var UsersAPI = class {
2563
2695
  * @param options - The options for editing the user
2564
2696
  */
2565
2697
  async edit(body, { signal } = {}) {
2566
- return this.rest.patch(import_v1015.Routes.user("@me"), { body, signal });
2698
+ return this.rest.patch(import_v1016.Routes.user("@me"), { body, signal });
2567
2699
  }
2568
2700
  /**
2569
2701
  * Fetches the guild member for the current user
@@ -2573,7 +2705,7 @@ var UsersAPI = class {
2573
2705
  * @param options - The options for fetching the guild member
2574
2706
  */
2575
2707
  async getGuildMember(guildId, { signal } = {}) {
2576
- return this.rest.get(import_v1015.Routes.userGuildMember(guildId), { signal });
2708
+ return this.rest.get(import_v1016.Routes.userGuildMember(guildId), { signal });
2577
2709
  }
2578
2710
  /**
2579
2711
  * Edits the guild member for the current user
@@ -2584,7 +2716,7 @@ var UsersAPI = class {
2584
2716
  * @param options - The options for editing the guild member
2585
2717
  */
2586
2718
  async editCurrentGuildMember(guildId, body = {}, { reason, signal } = {}) {
2587
- return this.rest.patch(import_v1015.Routes.guildMember(guildId, "@me"), {
2719
+ return this.rest.patch(import_v1016.Routes.guildMember(guildId, "@me"), {
2588
2720
  reason,
2589
2721
  body,
2590
2722
  signal
@@ -2598,7 +2730,7 @@ var UsersAPI = class {
2598
2730
  * @param options - The options for opening the DM
2599
2731
  */
2600
2732
  async createDM(userId, { signal } = {}) {
2601
- return this.rest.post(import_v1015.Routes.userChannels(), {
2733
+ return this.rest.post(import_v1016.Routes.userChannels(), {
2602
2734
  body: { recipient_id: userId },
2603
2735
  signal
2604
2736
  });
@@ -2610,7 +2742,7 @@ var UsersAPI = class {
2610
2742
  * @param options - The options for fetching the user's connections
2611
2743
  */
2612
2744
  async getConnections({ signal } = {}) {
2613
- return this.rest.get(import_v1015.Routes.userConnections(), { signal });
2745
+ return this.rest.get(import_v1016.Routes.userConnections(), { signal });
2614
2746
  }
2615
2747
  /**
2616
2748
  * Gets the current user's active application role connection
@@ -2620,7 +2752,7 @@ var UsersAPI = class {
2620
2752
  * @param options - The options for fetching the role connections
2621
2753
  */
2622
2754
  async getApplicationRoleConnection(applicationId, { signal } = {}) {
2623
- return this.rest.get(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2755
+ return this.rest.get(import_v1016.Routes.userApplicationRoleConnection(applicationId), {
2624
2756
  signal
2625
2757
  });
2626
2758
  }
@@ -2633,7 +2765,7 @@ var UsersAPI = class {
2633
2765
  * @param options - The options for updating the application role connection
2634
2766
  */
2635
2767
  async updateApplicationRoleConnection(applicationId, body, { signal } = {}) {
2636
- return this.rest.put(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2768
+ return this.rest.put(import_v1016.Routes.userApplicationRoleConnection(applicationId), {
2637
2769
  body,
2638
2770
  signal
2639
2771
  });
@@ -2642,7 +2774,7 @@ var UsersAPI = class {
2642
2774
 
2643
2775
  // src/api/webhook.ts
2644
2776
  var import_rest9 = require("@discordjs/rest");
2645
- var import_v1016 = require("discord-api-types/v10");
2777
+ var import_v1017 = require("discord-api-types/v10");
2646
2778
  var WebhooksAPI = class {
2647
2779
  constructor(rest) {
2648
2780
  this.rest = rest;
@@ -2659,7 +2791,7 @@ var WebhooksAPI = class {
2659
2791
  * @param options - The options for fetching the webhook
2660
2792
  */
2661
2793
  async get(id, { token, signal } = {}) {
2662
- return this.rest.get(import_v1016.Routes.webhook(id, token), {
2794
+ return this.rest.get(import_v1017.Routes.webhook(id, token), {
2663
2795
  signal,
2664
2796
  auth: !token
2665
2797
  });
@@ -2674,7 +2806,7 @@ var WebhooksAPI = class {
2674
2806
  * @param options - The options for editing the webhook
2675
2807
  */
2676
2808
  async edit(id, body, { token, reason, signal } = {}) {
2677
- return this.rest.patch(import_v1016.Routes.webhook(id, token), {
2809
+ return this.rest.patch(import_v1017.Routes.webhook(id, token), {
2678
2810
  reason,
2679
2811
  body,
2680
2812
  signal,
@@ -2690,7 +2822,7 @@ var WebhooksAPI = class {
2690
2822
  * @param options - The options for deleting the webhook
2691
2823
  */
2692
2824
  async delete(id, { token, reason, signal } = {}) {
2693
- await this.rest.delete(import_v1016.Routes.webhook(id, token), {
2825
+ await this.rest.delete(import_v1017.Routes.webhook(id, token), {
2694
2826
  reason,
2695
2827
  signal,
2696
2828
  auth: !token
@@ -2711,7 +2843,7 @@ var WebhooksAPI = class {
2711
2843
  files,
2712
2844
  ...body
2713
2845
  }, { signal } = {}) {
2714
- return this.rest.post(import_v1016.Routes.webhook(id, token), {
2846
+ return this.rest.post(import_v1017.Routes.webhook(id, token), {
2715
2847
  query: (0, import_rest9.makeURLSearchParams)({ wait, thread_id }),
2716
2848
  files,
2717
2849
  body,
@@ -2731,7 +2863,7 @@ var WebhooksAPI = class {
2731
2863
  * @param options - The options for executing the webhook
2732
2864
  */
2733
2865
  async executeSlack(id, token, body, query = {}, { signal } = {}) {
2734
- await this.rest.post(import_v1016.Routes.webhookPlatform(id, token, "slack"), {
2866
+ await this.rest.post(import_v1017.Routes.webhookPlatform(id, token, "slack"), {
2735
2867
  query: (0, import_rest9.makeURLSearchParams)(query),
2736
2868
  body,
2737
2869
  auth: false,
@@ -2749,7 +2881,7 @@ var WebhooksAPI = class {
2749
2881
  * @param options - The options for executing the webhook
2750
2882
  */
2751
2883
  async executeGitHub(id, token, body, query = {}, { signal } = {}) {
2752
- await this.rest.post(import_v1016.Routes.webhookPlatform(id, token, "github"), {
2884
+ await this.rest.post(import_v1017.Routes.webhookPlatform(id, token, "github"), {
2753
2885
  query: (0, import_rest9.makeURLSearchParams)(query),
2754
2886
  body,
2755
2887
  signal,
@@ -2767,7 +2899,7 @@ var WebhooksAPI = class {
2767
2899
  * @param options - The options for fetching the message
2768
2900
  */
2769
2901
  async getMessage(id, token, messageId, query = {}, { signal } = {}) {
2770
- return this.rest.get(import_v1016.Routes.webhookMessage(id, token, messageId), {
2902
+ return this.rest.get(import_v1017.Routes.webhookMessage(id, token, messageId), {
2771
2903
  query: (0, import_rest9.makeURLSearchParams)(query),
2772
2904
  auth: false,
2773
2905
  signal
@@ -2788,7 +2920,7 @@ var WebhooksAPI = class {
2788
2920
  files,
2789
2921
  ...body
2790
2922
  }, { signal } = {}) {
2791
- return this.rest.patch(import_v1016.Routes.webhookMessage(id, token, messageId), {
2923
+ return this.rest.patch(import_v1017.Routes.webhookMessage(id, token, messageId), {
2792
2924
  query: (0, import_rest9.makeURLSearchParams)({ thread_id }),
2793
2925
  auth: false,
2794
2926
  body,
@@ -2807,7 +2939,7 @@ var WebhooksAPI = class {
2807
2939
  * @param options - The options for deleting the message
2808
2940
  */
2809
2941
  async deleteMessage(id, token, messageId, query = {}, { signal } = {}) {
2810
- await this.rest.delete(import_v1016.Routes.webhookMessage(id, token, messageId), {
2942
+ await this.rest.delete(import_v1017.Routes.webhookMessage(id, token, messageId), {
2811
2943
  query: (0, import_rest9.makeURLSearchParams)(query),
2812
2944
  auth: false,
2813
2945
  signal
@@ -2828,6 +2960,7 @@ var API = class {
2828
2960
  this.oauth2 = new OAuth2API(rest);
2829
2961
  this.poll = new PollAPI(rest);
2830
2962
  this.roleConnections = new RoleConnectionsAPI(rest);
2963
+ this.soundboardSounds = new SoundboardSoundsAPI(rest);
2831
2964
  this.stageInstances = new StageInstancesAPI(rest);
2832
2965
  this.stickers = new StickersAPI(rest);
2833
2966
  this.threads = new ThreadsAPI(rest);
@@ -2849,6 +2982,7 @@ var API = class {
2849
2982
  oauth2;
2850
2983
  poll;
2851
2984
  roleConnections;
2985
+ soundboardSounds;
2852
2986
  stageInstances;
2853
2987
  stickers;
2854
2988
  threads;
@@ -2876,7 +3010,7 @@ __name(withFiles, "withFiles");
2876
3010
 
2877
3011
  // src/http-only/index.ts
2878
3012
  __reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
2879
- var version = "2.0.1-dev.1730030702-ed78e4570";
3013
+ var version = "2.1.0-dev.1730808317-1184b38d3";
2880
3014
  // Annotate the CommonJS export names for ESM import in node:
2881
3015
  0 && (module.exports = {
2882
3016
  API,
@@ -2890,6 +3024,7 @@ var version = "2.0.1-dev.1730030702-ed78e4570";
2890
3024
  OAuth2API,
2891
3025
  PollAPI,
2892
3026
  RoleConnectionsAPI,
3027
+ SoundboardSoundsAPI,
2893
3028
  StageInstancesAPI,
2894
3029
  StickersAPI,
2895
3030
  ThreadsAPI,