@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/index.js CHANGED
@@ -34,6 +34,7 @@ __export(src_exports, {
34
34
  OAuth2API: () => OAuth2API,
35
35
  PollAPI: () => PollAPI,
36
36
  RoleConnectionsAPI: () => RoleConnectionsAPI,
37
+ SoundboardSoundsAPI: () => SoundboardSoundsAPI,
37
38
  StageInstancesAPI: () => StageInstancesAPI,
38
39
  StickersAPI: () => StickersAPI,
39
40
  ThreadsAPI: () => ThreadsAPI,
@@ -781,6 +782,20 @@ var ChannelsAPI = class {
781
782
  signal
782
783
  });
783
784
  }
785
+ /**
786
+ * Sends a soundboard sound in a channel
787
+ *
788
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound}
789
+ * @param channelId - The id of the channel to send the soundboard sound in
790
+ * @param body - The data for sending the soundboard sound
791
+ * @param options - The options for sending the soundboard sound
792
+ */
793
+ async sendSoundboardSound(channelId, body, { signal } = {}) {
794
+ return this.rest.post(import_v103.Routes.sendSoundboardSound(channelId), {
795
+ body,
796
+ signal
797
+ });
798
+ }
784
799
  };
785
800
 
786
801
  // src/api/guild.ts
@@ -1809,6 +1824,73 @@ var GuildsAPI = class {
1809
1824
  signal
1810
1825
  });
1811
1826
  }
1827
+ /**
1828
+ * Fetches all the soundboard sounds for a guild
1829
+ *
1830
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#list-guild-soundboard-sounds}
1831
+ * @param guildId - The id of the guild to fetch the soundboard sounds for
1832
+ * @param options - The options for fetching the soundboard sounds
1833
+ */
1834
+ async getSoundboardSounds(guildId, { signal } = {}) {
1835
+ return this.rest.get(import_v105.Routes.guildSoundboardSounds(guildId), {
1836
+ signal
1837
+ });
1838
+ }
1839
+ /**
1840
+ * Fetches a soundboard sound for a guild
1841
+ *
1842
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#get-guild-soundboard-sound}
1843
+ * @param guildId - The id of the guild to fetch the soundboard sound for
1844
+ * @param soundId - The id of the soundboard sound to fetch
1845
+ * @param options - The options for fetching the soundboard sound
1846
+ */
1847
+ async getSoundboardSound(guildId, soundId, { signal } = {}) {
1848
+ return this.rest.get(import_v105.Routes.guildSoundboardSound(guildId, soundId), {
1849
+ signal
1850
+ });
1851
+ }
1852
+ /**
1853
+ * Creates a new soundboard sound for a guild
1854
+ *
1855
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#create-guild-soundboard-sound}
1856
+ * @param guildId - The id of the guild to create the soundboard sound for
1857
+ * @param body - The data for creating the soundboard sound
1858
+ * @param options - The options for creating the soundboard sound
1859
+ */
1860
+ async createSoundboardSound(guildId, body, { reason, signal } = {}) {
1861
+ return this.rest.post(import_v105.Routes.guildSoundboardSounds(guildId), {
1862
+ body,
1863
+ reason,
1864
+ signal
1865
+ });
1866
+ }
1867
+ /**
1868
+ * Edits a soundboard sound for a guild
1869
+ *
1870
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#modify-guild-soundboard-sound}
1871
+ * @param guildId - The id of the guild to edit the soundboard sound for
1872
+ * @param soundId - The id of the soundboard sound to edit
1873
+ * @param body - The data for editing the soundboard sound
1874
+ * @param options - The options for editing the soundboard sound
1875
+ */
1876
+ async editSoundboardSound(guildId, soundId, body, { reason, signal } = {}) {
1877
+ return this.rest.patch(import_v105.Routes.guildSoundboardSound(guildId, soundId), {
1878
+ body,
1879
+ reason,
1880
+ signal
1881
+ });
1882
+ }
1883
+ /**
1884
+ * Deletes a soundboard sound for a guild
1885
+ *
1886
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#delete-guild-soundboard-sound}
1887
+ * @param guildId - The id of the guild to delete the soundboard sound for
1888
+ * @param soundId - The id of the soundboard sound to delete
1889
+ * @param options - The options for deleting the soundboard sound
1890
+ */
1891
+ async deleteSoundboardSound(guildId, soundId, { reason, signal } = {}) {
1892
+ await this.rest.delete(import_v105.Routes.guildSoundboardSound(guildId, soundId), { reason, signal });
1893
+ }
1812
1894
  };
1813
1895
 
1814
1896
  // src/api/interactions.ts
@@ -2062,16 +2144,44 @@ var MonetizationAPI = class {
2062
2144
  /**
2063
2145
  * Fetches the SKUs for an application.
2064
2146
  *
2065
- * @see {@link https://discord.com/developers/docs/monetization/skus#list-skus}
2147
+ * @see {@link https://discord.com/developers/docs/resources/sku#list-skus}
2148
+ * @param applicationId - The application id to fetch SKUs for
2066
2149
  * @param options - The options for fetching the SKUs.
2067
2150
  */
2068
2151
  async getSKUs(applicationId, { signal } = {}) {
2069
2152
  return this.rest.get(import_v108.Routes.skus(applicationId), { signal });
2070
2153
  }
2154
+ /**
2155
+ * Fetches subscriptions for an SKU.
2156
+ *
2157
+ * @see {@link https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions}
2158
+ * @param skuId - The SKU id to fetch subscriptions for
2159
+ * @param query - The query options for fetching subscriptions
2160
+ * @param options - The options for fetching subscriptions
2161
+ */
2162
+ async getSKUSubscriptions(skuId, query, { signal } = {}) {
2163
+ return this.rest.get(import_v108.Routes.skuSubscriptions(skuId), {
2164
+ signal,
2165
+ query: (0, import_rest5.makeURLSearchParams)(query)
2166
+ });
2167
+ }
2168
+ /**
2169
+ * Fetches a subscription for an SKU.
2170
+ *
2171
+ * @see {@link https://discord.com/developers/docs/resources/subscription#get-sku-subscription}
2172
+ * @param skuId - The SKU id to fetch subscription for
2173
+ * @param subscriptionId - The subscription id to fetch
2174
+ * @param options - The options for fetching the subscription
2175
+ */
2176
+ async getSKUSubscription(skuId, subscriptionId, { signal } = {}) {
2177
+ return this.rest.get(import_v108.Routes.skuSubscription(skuId, subscriptionId), {
2178
+ signal
2179
+ });
2180
+ }
2071
2181
  /**
2072
2182
  * Fetches the entitlements for an application.
2073
2183
  *
2074
- * @see {@link https://discord.com/developers/docs/monetization/entitlements#list-entitlements}
2184
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#list-entitlements}
2075
2185
  * @param applicationId - The application id to fetch entitlements for
2076
2186
  * @param query - The query options for fetching entitlements
2077
2187
  * @param options - The options for fetching entitlements
@@ -2085,7 +2195,7 @@ var MonetizationAPI = class {
2085
2195
  /**
2086
2196
  * Creates a test entitlement for an application's SKU.
2087
2197
  *
2088
- * @see {@link https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement}
2198
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#create-test-entitlement}
2089
2199
  * @param applicationId - The application id to create the entitlement for
2090
2200
  * @param body - The data for creating the entitlement
2091
2201
  * @param options - The options for creating the entitlement
@@ -2099,7 +2209,7 @@ var MonetizationAPI = class {
2099
2209
  /**
2100
2210
  * Deletes a test entitlement for an application's SKU.
2101
2211
  *
2102
- * @see {@link https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement}
2212
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#delete-test-entitlement}
2103
2213
  * @param applicationId - The application id to delete the entitlement for
2104
2214
  * @param entitlementId - The entitlement id to delete
2105
2215
  * @param options - The options for deleting the entitlement
@@ -2110,7 +2220,7 @@ var MonetizationAPI = class {
2110
2220
  /**
2111
2221
  * Marks a given entitlement for the user as consumed. Only available for One-Time Purchase consumable SKUs.
2112
2222
  *
2113
- * @see {@link https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement}
2223
+ * @see {@link https://discord.com/developers/docs/resources/entitlement#consume-an-entitlement}
2114
2224
  * @param applicationId - The application id to consume the entitlement for
2115
2225
  * @param entitlementId - The entitlement id to consume
2116
2226
  * @param options - The options for consuming the entitlement
@@ -2320,8 +2430,30 @@ var RoleConnectionsAPI = class {
2320
2430
  }
2321
2431
  };
2322
2432
 
2323
- // src/api/stageInstances.ts
2433
+ // src/api/soundboardSounds.ts
2324
2434
  var import_v1012 = require("discord-api-types/v10");
2435
+ var SoundboardSoundsAPI = class {
2436
+ constructor(rest) {
2437
+ this.rest = rest;
2438
+ }
2439
+ static {
2440
+ __name(this, "SoundboardSoundsAPI");
2441
+ }
2442
+ /**
2443
+ * Fetches all the soundboard default sounds.
2444
+ *
2445
+ * @see {@link https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds}
2446
+ * @param options - The options for fetching the soundboard default sounds.
2447
+ */
2448
+ async getSoundboardDefaultSounds({ signal } = {}) {
2449
+ return this.rest.get(import_v1012.Routes.soundboardDefaultSounds(), {
2450
+ signal
2451
+ });
2452
+ }
2453
+ };
2454
+
2455
+ // src/api/stageInstances.ts
2456
+ var import_v1013 = require("discord-api-types/v10");
2325
2457
  var StageInstancesAPI = class {
2326
2458
  constructor(rest) {
2327
2459
  this.rest = rest;
@@ -2337,7 +2469,7 @@ var StageInstancesAPI = class {
2337
2469
  * @param options - The options for creating the new stage instance
2338
2470
  */
2339
2471
  async create(body, { reason, signal } = {}) {
2340
- return this.rest.post(import_v1012.Routes.stageInstances(), {
2472
+ return this.rest.post(import_v1013.Routes.stageInstances(), {
2341
2473
  body,
2342
2474
  reason,
2343
2475
  signal
@@ -2351,7 +2483,7 @@ var StageInstancesAPI = class {
2351
2483
  * @param options - The options for fetching the stage instance
2352
2484
  */
2353
2485
  async get(channelId, { signal } = {}) {
2354
- return this.rest.get(import_v1012.Routes.stageInstance(channelId), { signal });
2486
+ return this.rest.get(import_v1013.Routes.stageInstance(channelId), { signal });
2355
2487
  }
2356
2488
  /**
2357
2489
  * Edits a stage instance
@@ -2362,7 +2494,7 @@ var StageInstancesAPI = class {
2362
2494
  * @param options - The options for editing the stage instance
2363
2495
  */
2364
2496
  async edit(channelId, body, { reason, signal } = {}) {
2365
- return this.rest.patch(import_v1012.Routes.stageInstance(channelId), {
2497
+ return this.rest.patch(import_v1013.Routes.stageInstance(channelId), {
2366
2498
  body,
2367
2499
  reason,
2368
2500
  signal
@@ -2376,12 +2508,12 @@ var StageInstancesAPI = class {
2376
2508
  * @param options - The options for deleting the stage instance
2377
2509
  */
2378
2510
  async delete(channelId, { reason, signal } = {}) {
2379
- await this.rest.delete(import_v1012.Routes.stageInstance(channelId), { reason, signal });
2511
+ await this.rest.delete(import_v1013.Routes.stageInstance(channelId), { reason, signal });
2380
2512
  }
2381
2513
  };
2382
2514
 
2383
2515
  // src/api/sticker.ts
2384
- var import_v1013 = require("discord-api-types/v10");
2516
+ var import_v1014 = require("discord-api-types/v10");
2385
2517
  var StickersAPI = class {
2386
2518
  constructor(rest) {
2387
2519
  this.rest = rest;
@@ -2397,7 +2529,7 @@ var StickersAPI = class {
2397
2529
  * @param options - The options for fetching the sticker pack
2398
2530
  */
2399
2531
  async getStickerPack(packId, { signal } = {}) {
2400
- return this.rest.get(import_v1013.Routes.stickerPack(packId), { signal });
2532
+ return this.rest.get(import_v1014.Routes.stickerPack(packId), { signal });
2401
2533
  }
2402
2534
  /**
2403
2535
  * Fetches all of the sticker packs
@@ -2406,7 +2538,7 @@ var StickersAPI = class {
2406
2538
  * @param options - The options for fetching the sticker packs
2407
2539
  */
2408
2540
  async getStickers({ signal } = {}) {
2409
- return this.rest.get(import_v1013.Routes.stickerPacks(), { signal });
2541
+ return this.rest.get(import_v1014.Routes.stickerPacks(), { signal });
2410
2542
  }
2411
2543
  /**
2412
2544
  * Fetches all of the sticker packs
@@ -2426,12 +2558,12 @@ var StickersAPI = class {
2426
2558
  * @param options - The options for fetching the sticker
2427
2559
  */
2428
2560
  async get(stickerId, { signal } = {}) {
2429
- return this.rest.get(import_v1013.Routes.sticker(stickerId), { signal });
2561
+ return this.rest.get(import_v1014.Routes.sticker(stickerId), { signal });
2430
2562
  }
2431
2563
  };
2432
2564
 
2433
2565
  // src/api/thread.ts
2434
- var import_v1014 = require("discord-api-types/v10");
2566
+ var import_v1015 = require("discord-api-types/v10");
2435
2567
  var ThreadsAPI = class {
2436
2568
  constructor(rest) {
2437
2569
  this.rest = rest;
@@ -2447,7 +2579,7 @@ var ThreadsAPI = class {
2447
2579
  * @param options - The options for joining the thread
2448
2580
  */
2449
2581
  async join(threadId, { signal } = {}) {
2450
- await this.rest.put(import_v1014.Routes.threadMembers(threadId, "@me"), { signal });
2582
+ await this.rest.put(import_v1015.Routes.threadMembers(threadId, "@me"), { signal });
2451
2583
  }
2452
2584
  /**
2453
2585
  * Adds a member to a thread
@@ -2458,7 +2590,7 @@ var ThreadsAPI = class {
2458
2590
  * @param options - The options for adding the member to the thread
2459
2591
  */
2460
2592
  async addMember(threadId, userId, { signal } = {}) {
2461
- await this.rest.put(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2593
+ await this.rest.put(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2462
2594
  }
2463
2595
  /**
2464
2596
  * Removes the current user from a thread
@@ -2468,7 +2600,7 @@ var ThreadsAPI = class {
2468
2600
  * @param options - The options for leaving the thread
2469
2601
  */
2470
2602
  async leave(threadId, { signal } = {}) {
2471
- await this.rest.delete(import_v1014.Routes.threadMembers(threadId, "@me"), { signal });
2603
+ await this.rest.delete(import_v1015.Routes.threadMembers(threadId, "@me"), { signal });
2472
2604
  }
2473
2605
  /**
2474
2606
  * Removes a member from a thread
@@ -2479,7 +2611,7 @@ var ThreadsAPI = class {
2479
2611
  * @param options - The options for removing the member from the thread
2480
2612
  */
2481
2613
  async removeMember(threadId, userId, { signal } = {}) {
2482
- await this.rest.delete(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2614
+ await this.rest.delete(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2483
2615
  }
2484
2616
  /**
2485
2617
  * Fetches a member of a thread
@@ -2490,7 +2622,7 @@ var ThreadsAPI = class {
2490
2622
  * @param options - The options for fetching the member
2491
2623
  */
2492
2624
  async getMember(threadId, userId, { signal } = {}) {
2493
- return this.rest.get(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2625
+ return this.rest.get(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2494
2626
  }
2495
2627
  /**
2496
2628
  * Fetches all members of a thread
@@ -2500,13 +2632,13 @@ var ThreadsAPI = class {
2500
2632
  * @param options - The options for fetching the members
2501
2633
  */
2502
2634
  async getAllMembers(threadId, { signal } = {}) {
2503
- return this.rest.get(import_v1014.Routes.threadMembers(threadId), { signal });
2635
+ return this.rest.get(import_v1015.Routes.threadMembers(threadId), { signal });
2504
2636
  }
2505
2637
  };
2506
2638
 
2507
2639
  // src/api/user.ts
2508
2640
  var import_rest8 = require("@discordjs/rest");
2509
- var import_v1015 = require("discord-api-types/v10");
2641
+ var import_v1016 = require("discord-api-types/v10");
2510
2642
  var UsersAPI = class {
2511
2643
  constructor(rest) {
2512
2644
  this.rest = rest;
@@ -2522,7 +2654,7 @@ var UsersAPI = class {
2522
2654
  * @param options - The options for fetching the user
2523
2655
  */
2524
2656
  async get(userId, { signal } = {}) {
2525
- return this.rest.get(import_v1015.Routes.user(userId), { signal });
2657
+ return this.rest.get(import_v1016.Routes.user(userId), { signal });
2526
2658
  }
2527
2659
  /**
2528
2660
  * Returns the user object of the requester's account
@@ -2531,7 +2663,7 @@ var UsersAPI = class {
2531
2663
  * @param options - The options for fetching the current user
2532
2664
  */
2533
2665
  async getCurrent({ signal } = {}) {
2534
- return this.rest.get(import_v1015.Routes.user("@me"), { signal });
2666
+ return this.rest.get(import_v1016.Routes.user("@me"), { signal });
2535
2667
  }
2536
2668
  /**
2537
2669
  * Returns a list of partial guild objects the current user is a member of
@@ -2541,7 +2673,7 @@ var UsersAPI = class {
2541
2673
  * @param options - The options for fetching the guilds
2542
2674
  */
2543
2675
  async getGuilds(query = {}, { signal } = {}) {
2544
- return this.rest.get(import_v1015.Routes.userGuilds(), {
2676
+ return this.rest.get(import_v1016.Routes.userGuilds(), {
2545
2677
  query: (0, import_rest8.makeURLSearchParams)(query),
2546
2678
  signal
2547
2679
  });
@@ -2554,7 +2686,7 @@ var UsersAPI = class {
2554
2686
  * @param options - The options for leaving the guild
2555
2687
  */
2556
2688
  async leaveGuild(guildId, { signal } = {}) {
2557
- await this.rest.delete(import_v1015.Routes.userGuild(guildId), { signal });
2689
+ await this.rest.delete(import_v1016.Routes.userGuild(guildId), { signal });
2558
2690
  }
2559
2691
  /**
2560
2692
  * Edits the current user
@@ -2564,7 +2696,7 @@ var UsersAPI = class {
2564
2696
  * @param options - The options for editing the user
2565
2697
  */
2566
2698
  async edit(body, { signal } = {}) {
2567
- return this.rest.patch(import_v1015.Routes.user("@me"), { body, signal });
2699
+ return this.rest.patch(import_v1016.Routes.user("@me"), { body, signal });
2568
2700
  }
2569
2701
  /**
2570
2702
  * Fetches the guild member for the current user
@@ -2574,7 +2706,7 @@ var UsersAPI = class {
2574
2706
  * @param options - The options for fetching the guild member
2575
2707
  */
2576
2708
  async getGuildMember(guildId, { signal } = {}) {
2577
- return this.rest.get(import_v1015.Routes.userGuildMember(guildId), { signal });
2709
+ return this.rest.get(import_v1016.Routes.userGuildMember(guildId), { signal });
2578
2710
  }
2579
2711
  /**
2580
2712
  * Edits the guild member for the current user
@@ -2585,7 +2717,7 @@ var UsersAPI = class {
2585
2717
  * @param options - The options for editing the guild member
2586
2718
  */
2587
2719
  async editCurrentGuildMember(guildId, body = {}, { reason, signal } = {}) {
2588
- return this.rest.patch(import_v1015.Routes.guildMember(guildId, "@me"), {
2720
+ return this.rest.patch(import_v1016.Routes.guildMember(guildId, "@me"), {
2589
2721
  reason,
2590
2722
  body,
2591
2723
  signal
@@ -2599,7 +2731,7 @@ var UsersAPI = class {
2599
2731
  * @param options - The options for opening the DM
2600
2732
  */
2601
2733
  async createDM(userId, { signal } = {}) {
2602
- return this.rest.post(import_v1015.Routes.userChannels(), {
2734
+ return this.rest.post(import_v1016.Routes.userChannels(), {
2603
2735
  body: { recipient_id: userId },
2604
2736
  signal
2605
2737
  });
@@ -2611,7 +2743,7 @@ var UsersAPI = class {
2611
2743
  * @param options - The options for fetching the user's connections
2612
2744
  */
2613
2745
  async getConnections({ signal } = {}) {
2614
- return this.rest.get(import_v1015.Routes.userConnections(), { signal });
2746
+ return this.rest.get(import_v1016.Routes.userConnections(), { signal });
2615
2747
  }
2616
2748
  /**
2617
2749
  * Gets the current user's active application role connection
@@ -2621,7 +2753,7 @@ var UsersAPI = class {
2621
2753
  * @param options - The options for fetching the role connections
2622
2754
  */
2623
2755
  async getApplicationRoleConnection(applicationId, { signal } = {}) {
2624
- return this.rest.get(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2756
+ return this.rest.get(import_v1016.Routes.userApplicationRoleConnection(applicationId), {
2625
2757
  signal
2626
2758
  });
2627
2759
  }
@@ -2634,7 +2766,7 @@ var UsersAPI = class {
2634
2766
  * @param options - The options for updating the application role connection
2635
2767
  */
2636
2768
  async updateApplicationRoleConnection(applicationId, body, { signal } = {}) {
2637
- return this.rest.put(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2769
+ return this.rest.put(import_v1016.Routes.userApplicationRoleConnection(applicationId), {
2638
2770
  body,
2639
2771
  signal
2640
2772
  });
@@ -2643,7 +2775,7 @@ var UsersAPI = class {
2643
2775
 
2644
2776
  // src/api/webhook.ts
2645
2777
  var import_rest9 = require("@discordjs/rest");
2646
- var import_v1016 = require("discord-api-types/v10");
2778
+ var import_v1017 = require("discord-api-types/v10");
2647
2779
  var WebhooksAPI = class {
2648
2780
  constructor(rest) {
2649
2781
  this.rest = rest;
@@ -2660,7 +2792,7 @@ var WebhooksAPI = class {
2660
2792
  * @param options - The options for fetching the webhook
2661
2793
  */
2662
2794
  async get(id, { token, signal } = {}) {
2663
- return this.rest.get(import_v1016.Routes.webhook(id, token), {
2795
+ return this.rest.get(import_v1017.Routes.webhook(id, token), {
2664
2796
  signal,
2665
2797
  auth: !token
2666
2798
  });
@@ -2675,7 +2807,7 @@ var WebhooksAPI = class {
2675
2807
  * @param options - The options for editing the webhook
2676
2808
  */
2677
2809
  async edit(id, body, { token, reason, signal } = {}) {
2678
- return this.rest.patch(import_v1016.Routes.webhook(id, token), {
2810
+ return this.rest.patch(import_v1017.Routes.webhook(id, token), {
2679
2811
  reason,
2680
2812
  body,
2681
2813
  signal,
@@ -2691,7 +2823,7 @@ var WebhooksAPI = class {
2691
2823
  * @param options - The options for deleting the webhook
2692
2824
  */
2693
2825
  async delete(id, { token, reason, signal } = {}) {
2694
- await this.rest.delete(import_v1016.Routes.webhook(id, token), {
2826
+ await this.rest.delete(import_v1017.Routes.webhook(id, token), {
2695
2827
  reason,
2696
2828
  signal,
2697
2829
  auth: !token
@@ -2712,7 +2844,7 @@ var WebhooksAPI = class {
2712
2844
  files,
2713
2845
  ...body
2714
2846
  }, { signal } = {}) {
2715
- return this.rest.post(import_v1016.Routes.webhook(id, token), {
2847
+ return this.rest.post(import_v1017.Routes.webhook(id, token), {
2716
2848
  query: (0, import_rest9.makeURLSearchParams)({ wait, thread_id }),
2717
2849
  files,
2718
2850
  body,
@@ -2732,7 +2864,7 @@ var WebhooksAPI = class {
2732
2864
  * @param options - The options for executing the webhook
2733
2865
  */
2734
2866
  async executeSlack(id, token, body, query = {}, { signal } = {}) {
2735
- await this.rest.post(import_v1016.Routes.webhookPlatform(id, token, "slack"), {
2867
+ await this.rest.post(import_v1017.Routes.webhookPlatform(id, token, "slack"), {
2736
2868
  query: (0, import_rest9.makeURLSearchParams)(query),
2737
2869
  body,
2738
2870
  auth: false,
@@ -2750,7 +2882,7 @@ var WebhooksAPI = class {
2750
2882
  * @param options - The options for executing the webhook
2751
2883
  */
2752
2884
  async executeGitHub(id, token, body, query = {}, { signal } = {}) {
2753
- await this.rest.post(import_v1016.Routes.webhookPlatform(id, token, "github"), {
2885
+ await this.rest.post(import_v1017.Routes.webhookPlatform(id, token, "github"), {
2754
2886
  query: (0, import_rest9.makeURLSearchParams)(query),
2755
2887
  body,
2756
2888
  signal,
@@ -2768,7 +2900,7 @@ var WebhooksAPI = class {
2768
2900
  * @param options - The options for fetching the message
2769
2901
  */
2770
2902
  async getMessage(id, token, messageId, query = {}, { signal } = {}) {
2771
- return this.rest.get(import_v1016.Routes.webhookMessage(id, token, messageId), {
2903
+ return this.rest.get(import_v1017.Routes.webhookMessage(id, token, messageId), {
2772
2904
  query: (0, import_rest9.makeURLSearchParams)(query),
2773
2905
  auth: false,
2774
2906
  signal
@@ -2789,7 +2921,7 @@ var WebhooksAPI = class {
2789
2921
  files,
2790
2922
  ...body
2791
2923
  }, { signal } = {}) {
2792
- return this.rest.patch(import_v1016.Routes.webhookMessage(id, token, messageId), {
2924
+ return this.rest.patch(import_v1017.Routes.webhookMessage(id, token, messageId), {
2793
2925
  query: (0, import_rest9.makeURLSearchParams)({ thread_id }),
2794
2926
  auth: false,
2795
2927
  body,
@@ -2808,7 +2940,7 @@ var WebhooksAPI = class {
2808
2940
  * @param options - The options for deleting the message
2809
2941
  */
2810
2942
  async deleteMessage(id, token, messageId, query = {}, { signal } = {}) {
2811
- await this.rest.delete(import_v1016.Routes.webhookMessage(id, token, messageId), {
2943
+ await this.rest.delete(import_v1017.Routes.webhookMessage(id, token, messageId), {
2812
2944
  query: (0, import_rest9.makeURLSearchParams)(query),
2813
2945
  auth: false,
2814
2946
  signal
@@ -2829,6 +2961,7 @@ var API = class {
2829
2961
  this.oauth2 = new OAuth2API(rest);
2830
2962
  this.poll = new PollAPI(rest);
2831
2963
  this.roleConnections = new RoleConnectionsAPI(rest);
2964
+ this.soundboardSounds = new SoundboardSoundsAPI(rest);
2832
2965
  this.stageInstances = new StageInstancesAPI(rest);
2833
2966
  this.stickers = new StickersAPI(rest);
2834
2967
  this.threads = new ThreadsAPI(rest);
@@ -2850,6 +2983,7 @@ var API = class {
2850
2983
  oauth2;
2851
2984
  poll;
2852
2985
  roleConnections;
2986
+ soundboardSounds;
2853
2987
  stageInstances;
2854
2988
  stickers;
2855
2989
  threads;
@@ -2864,7 +2998,7 @@ var import_util = require("@discordjs/util");
2864
2998
  var import_ws = require("@discordjs/ws");
2865
2999
  var import_snowflake = require("@sapphire/snowflake");
2866
3000
  var import_async_event_emitter = require("@vladfrangu/async_event_emitter");
2867
- var import_v1017 = require("discord-api-types/v10");
3001
+ var import_v1018 = require("discord-api-types/v10");
2868
3002
  var Client = class extends import_async_event_emitter.AsyncEventEmitter {
2869
3003
  static {
2870
3004
  __name(this, "Client");
@@ -2904,7 +3038,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
2904
3038
  }, timeout), "createTimer");
2905
3039
  let timer = createTimer();
2906
3040
  await this.gateway.send(shardId, {
2907
- op: import_v1017.GatewayOpcodes.RequestGuildMembers,
3041
+ op: import_v1018.GatewayOpcodes.RequestGuildMembers,
2908
3042
  // eslint-disable-next-line id-length
2909
3043
  d: {
2910
3044
  ...options,
@@ -2912,7 +3046,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
2912
3046
  }
2913
3047
  });
2914
3048
  try {
2915
- const iterator = import_async_event_emitter.AsyncEventEmitter.on(this, import_v1017.GatewayDispatchEvents.GuildMembersChunk, {
3049
+ const iterator = import_async_event_emitter.AsyncEventEmitter.on(this, import_v1018.GatewayDispatchEvents.GuildMembersChunk, {
2916
3050
  signal: controller.signal
2917
3051
  });
2918
3052
  for await (const [{ data }] of iterator) {
@@ -2977,7 +3111,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
2977
3111
  async updateVoiceState(options) {
2978
3112
  const shardId = (0, import_util.calculateShardId)(options.guild_id, await this.gateway.getShardCount());
2979
3113
  await this.gateway.send(shardId, {
2980
- op: import_v1017.GatewayOpcodes.VoiceStateUpdate,
3114
+ op: import_v1018.GatewayOpcodes.VoiceStateUpdate,
2981
3115
  // eslint-disable-next-line id-length
2982
3116
  d: options
2983
3117
  });
@@ -2990,7 +3124,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
2990
3124
  */
2991
3125
  async updatePresence(shardId, options) {
2992
3126
  await this.gateway.send(shardId, {
2993
- op: import_v1017.GatewayOpcodes.PresenceUpdate,
3127
+ op: import_v1018.GatewayOpcodes.PresenceUpdate,
2994
3128
  // eslint-disable-next-line id-length
2995
3129
  d: options
2996
3130
  });
@@ -3023,7 +3157,7 @@ __name(withFiles, "withFiles");
3023
3157
 
3024
3158
  // src/index.ts
3025
3159
  __reExport(src_exports, require("discord-api-types/v10"), module.exports);
3026
- var version = "2.0.1-dev.1730030702-ed78e4570";
3160
+ var version = "2.1.0-dev.1730808317-1184b38d3";
3027
3161
  // Annotate the CommonJS export names for ESM import in node:
3028
3162
  0 && (module.exports = {
3029
3163
  API,
@@ -3038,6 +3172,7 @@ var version = "2.0.1-dev.1730030702-ed78e4570";
3038
3172
  OAuth2API,
3039
3173
  PollAPI,
3040
3174
  RoleConnectionsAPI,
3175
+ SoundboardSoundsAPI,
3041
3176
  StageInstancesAPI,
3042
3177
  StickersAPI,
3043
3178
  ThreadsAPI,