@discordjs/core 2.1.0-dev.1732709132-97ffa201a → 2.1.0-dev.1738965220-519aa3abe

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,7 +34,6 @@ __export(src_exports, {
34
34
  OAuth2API: () => OAuth2API,
35
35
  PollAPI: () => PollAPI,
36
36
  RoleConnectionsAPI: () => RoleConnectionsAPI,
37
- SoundboardSoundsAPI: () => SoundboardSoundsAPI,
38
37
  StageInstancesAPI: () => StageInstancesAPI,
39
38
  StickersAPI: () => StickersAPI,
40
39
  ThreadsAPI: () => ThreadsAPI,
@@ -417,17 +416,9 @@ var ChannelsAPI = class {
417
416
  * @see {@link https://discord.com/developers/docs/resources/message#get-reactions}
418
417
  * @param channelId - The id of the channel the message is in
419
418
  * @param messageId - The id of the message to get the reactions for
420
- * @param emoji - The emoji to get the reactions for. URL encoding happens internally
419
+ * @param emoji - The emoji to get the reactions for
421
420
  * @param query - The query options for fetching the reactions
422
421
  * @param options - The options for fetching the message reactions
423
- * @example
424
- * ```ts
425
- * // Unicode.
426
- * await api.channels.getMessageReactions('1234567890', '1234567890', '👍');
427
- *
428
- * // Custom emoji.
429
- * await api.channels.getMessageReactions('1234567890', '1234567890', 'emoji_name:1234567890');
430
- * ```
431
422
  */
432
423
  async getMessageReactions(channelId, messageId, emoji, query = {}, { signal } = {}) {
433
424
  return this.rest.get(import_v103.Routes.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)), {
@@ -441,16 +432,8 @@ var ChannelsAPI = class {
441
432
  * @see {@link https://discord.com/developers/docs/resources/message#delete-own-reaction}
442
433
  * @param channelId - The id of the channel the message is in
443
434
  * @param messageId - The id of the message to delete the reaction for
444
- * @param emoji - The emoji to delete the reaction for. URL encoding happens internally
435
+ * @param emoji - The emoji to delete the reaction for
445
436
  * @param options - The options for deleting the reaction
446
- * @example
447
- * ```ts
448
- * // Unicode.
449
- * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', '👍');
450
- *
451
- * // Custom emoji.
452
- * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
453
- * ```
454
437
  */
455
438
  async deleteOwnMessageReaction(channelId, messageId, emoji, { signal } = {}) {
456
439
  await this.rest.delete(import_v103.Routes.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)), {
@@ -463,17 +446,9 @@ var ChannelsAPI = class {
463
446
  * @see {@link https://discord.com/developers/docs/resources/message#delete-user-reaction}
464
447
  * @param channelId - The id of the channel the message is in
465
448
  * @param messageId - The id of the message to delete the reaction for
466
- * @param emoji - The emoji to delete the reaction for. URL encoding happens internally
449
+ * @param emoji - The emoji to delete the reaction for
467
450
  * @param userId - The id of the user to delete the reaction for
468
451
  * @param options - The options for deleting the reaction
469
- * @example
470
- * ```ts
471
- * // Unicode.
472
- * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', '👍', '1234567890');
473
- *
474
- * // Custom emoji.
475
- * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890', '1234567890');
476
- * ```
477
452
  */
478
453
  async deleteUserMessageReaction(channelId, messageId, emoji, userId, { signal } = {}) {
479
454
  await this.rest.delete(import_v103.Routes.channelMessageUserReaction(channelId, messageId, encodeURIComponent(emoji), userId), {
@@ -497,16 +472,8 @@ var ChannelsAPI = class {
497
472
  * @see {@link https://discord.com/developers/docs/resources/message#delete-all-reactions-for-emoji}
498
473
  * @param channelId - The id of the channel the message is in
499
474
  * @param messageId - The id of the message to delete the reactions for
500
- * @param emoji - The emoji to delete the reactions for. URL encoding happens internally
475
+ * @param emoji - The emoji to delete the reactions for
501
476
  * @param options - The options for deleting the reactions
502
- * @example
503
- * ```ts
504
- * // Unicode.
505
- * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', '👍');
506
- *
507
- * // Custom emoji.
508
- * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', 'emoji_name:1234567890');
509
- * ```
510
477
  */
511
478
  async deleteAllMessageReactionsForEmoji(channelId, messageId, emoji, { signal } = {}) {
512
479
  await this.rest.delete(import_v103.Routes.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)), { signal });
@@ -517,16 +484,8 @@ var ChannelsAPI = class {
517
484
  * @see {@link https://discord.com/developers/docs/resources/message#create-reaction}
518
485
  * @param channelId - The id of the channel the message is in
519
486
  * @param messageId - The id of the message to add the reaction to
520
- * @param emoji - The emoji to add the reaction with. URL encoding happens internally
487
+ * @param emoji - The emoji to add the reaction with
521
488
  * @param options - The options for adding the reaction
522
- * @example
523
- * ```ts
524
- * // Unicode.
525
- * await api.channels.addMessageReaction('1234567890', '1234567890', '👍');
526
- *
527
- * // Custom emoji.
528
- * await api.channels.addMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
529
- * ```
530
489
  */
531
490
  async addMessageReaction(channelId, messageId, emoji, { signal } = {}) {
532
491
  await this.rest.put(import_v103.Routes.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)), { signal });
@@ -822,20 +781,6 @@ var ChannelsAPI = class {
822
781
  signal
823
782
  });
824
783
  }
825
- /**
826
- * Sends a soundboard sound in a channel
827
- *
828
- * @see {@link https://discord.com/developers/docs/resources/soundboard#send-soundboard-sound}
829
- * @param channelId - The id of the channel to send the soundboard sound in
830
- * @param body - The data for sending the soundboard sound
831
- * @param options - The options for sending the soundboard sound
832
- */
833
- async sendSoundboardSound(channelId, body, { signal } = {}) {
834
- return this.rest.post(import_v103.Routes.sendSoundboardSound(channelId), {
835
- body,
836
- signal
837
- });
838
- }
839
784
  };
840
785
 
841
786
  // src/api/guild.ts
@@ -1864,77 +1809,9 @@ var GuildsAPI = class {
1864
1809
  signal
1865
1810
  });
1866
1811
  }
1867
- /**
1868
- * Fetches all the soundboard sounds for a guild
1869
- *
1870
- * @see {@link https://discord.com/developers/docs/resources/soundboard#list-guild-soundboard-sounds}
1871
- * @param guildId - The id of the guild to fetch the soundboard sounds for
1872
- * @param options - The options for fetching the soundboard sounds
1873
- */
1874
- async getSoundboardSounds(guildId, { signal } = {}) {
1875
- return this.rest.get(import_v105.Routes.guildSoundboardSounds(guildId), {
1876
- signal
1877
- });
1878
- }
1879
- /**
1880
- * Fetches a soundboard sound for a guild
1881
- *
1882
- * @see {@link https://discord.com/developers/docs/resources/soundboard#get-guild-soundboard-sound}
1883
- * @param guildId - The id of the guild to fetch the soundboard sound for
1884
- * @param soundId - The id of the soundboard sound to fetch
1885
- * @param options - The options for fetching the soundboard sound
1886
- */
1887
- async getSoundboardSound(guildId, soundId, { signal } = {}) {
1888
- return this.rest.get(import_v105.Routes.guildSoundboardSound(guildId, soundId), {
1889
- signal
1890
- });
1891
- }
1892
- /**
1893
- * Creates a new soundboard sound for a guild
1894
- *
1895
- * @see {@link https://discord.com/developers/docs/resources/soundboard#create-guild-soundboard-sound}
1896
- * @param guildId - The id of the guild to create the soundboard sound for
1897
- * @param body - The data for creating the soundboard sound
1898
- * @param options - The options for creating the soundboard sound
1899
- */
1900
- async createSoundboardSound(guildId, body, { reason, signal } = {}) {
1901
- return this.rest.post(import_v105.Routes.guildSoundboardSounds(guildId), {
1902
- body,
1903
- reason,
1904
- signal
1905
- });
1906
- }
1907
- /**
1908
- * Edits a soundboard sound for a guild
1909
- *
1910
- * @see {@link https://discord.com/developers/docs/resources/soundboard#modify-guild-soundboard-sound}
1911
- * @param guildId - The id of the guild to edit the soundboard sound for
1912
- * @param soundId - The id of the soundboard sound to edit
1913
- * @param body - The data for editing the soundboard sound
1914
- * @param options - The options for editing the soundboard sound
1915
- */
1916
- async editSoundboardSound(guildId, soundId, body, { reason, signal } = {}) {
1917
- return this.rest.patch(import_v105.Routes.guildSoundboardSound(guildId, soundId), {
1918
- body,
1919
- reason,
1920
- signal
1921
- });
1922
- }
1923
- /**
1924
- * Deletes a soundboard sound for a guild
1925
- *
1926
- * @see {@link https://discord.com/developers/docs/resources/soundboard#delete-guild-soundboard-sound}
1927
- * @param guildId - The id of the guild to delete the soundboard sound for
1928
- * @param soundId - The id of the soundboard sound to delete
1929
- * @param options - The options for deleting the soundboard sound
1930
- */
1931
- async deleteSoundboardSound(guildId, soundId, { reason, signal } = {}) {
1932
- await this.rest.delete(import_v105.Routes.guildSoundboardSound(guildId, soundId), { reason, signal });
1933
- }
1934
1812
  };
1935
1813
 
1936
1814
  // src/api/interactions.ts
1937
- var import_rest4 = require("@discordjs/rest");
1938
1815
  var import_v106 = require("discord-api-types/v10");
1939
1816
  var InteractionsAPI = class {
1940
1817
  constructor(rest, webhooks) {
@@ -1944,13 +1821,17 @@ var InteractionsAPI = class {
1944
1821
  static {
1945
1822
  __name(this, "InteractionsAPI");
1946
1823
  }
1947
- async reply(interactionId, interactionToken, {
1948
- files,
1949
- with_response,
1950
- ...data
1951
- }, { signal } = {}) {
1952
- const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1953
- query: (0, import_rest4.makeURLSearchParams)({ with_response }),
1824
+ /**
1825
+ * Replies to an interaction
1826
+ *
1827
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1828
+ * @param interactionId - The id of the interaction
1829
+ * @param interactionToken - The token of the interaction
1830
+ * @param body - The callback data for replying
1831
+ * @param options - The options for replying
1832
+ */
1833
+ async reply(interactionId, interactionToken, { files, ...data }, { signal } = {}) {
1834
+ await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1954
1835
  files,
1955
1836
  auth: false,
1956
1837
  body: {
@@ -1959,14 +1840,18 @@ var InteractionsAPI = class {
1959
1840
  },
1960
1841
  signal
1961
1842
  });
1962
- return with_response ? response : void 0;
1963
1843
  }
1964
- async defer(interactionId, interactionToken, {
1965
- with_response,
1966
- ...data
1967
- } = {}, { signal } = {}) {
1968
- const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1969
- query: (0, import_rest4.makeURLSearchParams)({ with_response }),
1844
+ /**
1845
+ * Defers the reply to an interaction
1846
+ *
1847
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1848
+ * @param interactionId - The id of the interaction
1849
+ * @param interactionToken - The token of the interaction
1850
+ * @param data - The data for deferring the reply
1851
+ * @param options - The options for deferring
1852
+ */
1853
+ async defer(interactionId, interactionToken, data, { signal } = {}) {
1854
+ await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1970
1855
  auth: false,
1971
1856
  body: {
1972
1857
  type: import_v106.InteractionResponseType.DeferredChannelMessageWithSource,
@@ -1974,18 +1859,23 @@ var InteractionsAPI = class {
1974
1859
  },
1975
1860
  signal
1976
1861
  });
1977
- return with_response ? response : void 0;
1978
1862
  }
1979
- async deferMessageUpdate(interactionId, interactionToken, { with_response } = {}, { signal } = {}) {
1980
- const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1981
- query: (0, import_rest4.makeURLSearchParams)({ with_response }),
1863
+ /**
1864
+ * Defers an update from a message component interaction
1865
+ *
1866
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1867
+ * @param interactionId - The id of the interaction
1868
+ * @param interactionToken - The token of the interaction
1869
+ * @param options - The options for deferring
1870
+ */
1871
+ async deferMessageUpdate(interactionId, interactionToken, { signal } = {}) {
1872
+ await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1982
1873
  auth: false,
1983
1874
  body: {
1984
1875
  type: import_v106.InteractionResponseType.DeferredMessageUpdate
1985
1876
  },
1986
1877
  signal
1987
1878
  });
1988
- return with_response ? response : void 0;
1989
1879
  }
1990
1880
  /**
1991
1881
  * Reply to a deferred interaction
@@ -2045,12 +1935,17 @@ var InteractionsAPI = class {
2045
1935
  async deleteReply(applicationId, interactionToken, messageId, { signal } = {}) {
2046
1936
  await this.webhooks.deleteMessage(applicationId, interactionToken, messageId ?? "@original", {}, { signal });
2047
1937
  }
2048
- async updateMessage(interactionId, interactionToken, {
2049
- files,
2050
- with_response,
2051
- ...data
2052
- }, { signal } = {}) {
2053
- const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1938
+ /**
1939
+ * Updates the message the component interaction was triggered on
1940
+ *
1941
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1942
+ * @param interactionId - The id of the interaction
1943
+ * @param interactionToken - The token of the interaction
1944
+ * @param callbackData - The callback data for updating the interaction
1945
+ * @param options - The options for updating the interaction
1946
+ */
1947
+ async updateMessage(interactionId, interactionToken, { files, ...data }, { signal } = {}) {
1948
+ await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2054
1949
  files,
2055
1950
  auth: false,
2056
1951
  body: {
@@ -2059,32 +1954,44 @@ var InteractionsAPI = class {
2059
1954
  },
2060
1955
  signal
2061
1956
  });
2062
- return with_response ? response : void 0;
2063
1957
  }
2064
- async createAutocompleteResponse(interactionId, interactionToken, {
2065
- with_response,
2066
- ...data
2067
- }, { signal } = {}) {
2068
- const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1958
+ /**
1959
+ * Sends an autocomplete response to an interaction
1960
+ *
1961
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1962
+ * @param interactionId - The id of the interaction
1963
+ * @param interactionToken - The token of the interaction
1964
+ * @param callbackData - The callback data for the autocomplete response
1965
+ * @param options - The options for sending the autocomplete response
1966
+ */
1967
+ async createAutocompleteResponse(interactionId, interactionToken, callbackData, { signal } = {}) {
1968
+ await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2069
1969
  auth: false,
2070
1970
  body: {
2071
1971
  type: import_v106.InteractionResponseType.ApplicationCommandAutocompleteResult,
2072
- data
1972
+ data: callbackData
2073
1973
  },
2074
1974
  signal
2075
1975
  });
2076
- return with_response ? response : void 0;
2077
1976
  }
2078
- async createModal(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
2079
- const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1977
+ /**
1978
+ * Sends a modal response to an interaction
1979
+ *
1980
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1981
+ * @param interactionId - The id of the interaction
1982
+ * @param interactionToken - The token of the interaction
1983
+ * @param callbackData - The modal callback data to send
1984
+ * @param options - The options for sending the modal
1985
+ */
1986
+ async createModal(interactionId, interactionToken, callbackData, { signal } = {}) {
1987
+ await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2080
1988
  auth: false,
2081
1989
  body: {
2082
1990
  type: import_v106.InteractionResponseType.Modal,
2083
- data
1991
+ data: callbackData
2084
1992
  },
2085
1993
  signal
2086
1994
  });
2087
- return with_response ? response : void 0;
2088
1995
  }
2089
1996
  /**
2090
1997
  * Sends a premium required response to an interaction
@@ -2093,7 +2000,7 @@ var InteractionsAPI = class {
2093
2000
  * @param interactionId - The id of the interaction
2094
2001
  * @param interactionToken - The token of the interaction
2095
2002
  * @param options - The options for sending the premium required response
2096
- * @deprecated Sending a premium-style button is the new Discord behaviour.
2003
+ * @deprecated Sending a premium-style button is the new Discord behavior.
2097
2004
  */
2098
2005
  async sendPremiumRequired(interactionId, interactionToken, { signal } = {}) {
2099
2006
  await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
@@ -2107,7 +2014,7 @@ var InteractionsAPI = class {
2107
2014
  };
2108
2015
 
2109
2016
  // src/api/invite.ts
2110
- var import_rest5 = require("@discordjs/rest");
2017
+ var import_rest4 = require("@discordjs/rest");
2111
2018
  var import_v107 = require("discord-api-types/v10");
2112
2019
  var InvitesAPI = class {
2113
2020
  constructor(rest) {
@@ -2126,7 +2033,7 @@ var InvitesAPI = class {
2126
2033
  */
2127
2034
  async get(code, query = {}, { signal } = {}) {
2128
2035
  return this.rest.get(import_v107.Routes.invite(code), {
2129
- query: (0, import_rest5.makeURLSearchParams)(query),
2036
+ query: (0, import_rest4.makeURLSearchParams)(query),
2130
2037
  signal
2131
2038
  });
2132
2039
  }
@@ -2143,7 +2050,7 @@ var InvitesAPI = class {
2143
2050
  };
2144
2051
 
2145
2052
  // src/api/monetization.ts
2146
- var import_rest6 = require("@discordjs/rest");
2053
+ var import_rest5 = require("@discordjs/rest");
2147
2054
  var import_v108 = require("discord-api-types/v10");
2148
2055
  var MonetizationAPI = class {
2149
2056
  constructor(rest) {
@@ -2155,44 +2062,16 @@ var MonetizationAPI = class {
2155
2062
  /**
2156
2063
  * Fetches the SKUs for an application.
2157
2064
  *
2158
- * @see {@link https://discord.com/developers/docs/resources/sku#list-skus}
2159
- * @param applicationId - The application id to fetch SKUs for
2065
+ * @see {@link https://discord.com/developers/docs/monetization/skus#list-skus}
2160
2066
  * @param options - The options for fetching the SKUs.
2161
2067
  */
2162
2068
  async getSKUs(applicationId, { signal } = {}) {
2163
2069
  return this.rest.get(import_v108.Routes.skus(applicationId), { signal });
2164
2070
  }
2165
- /**
2166
- * Fetches subscriptions for an SKU.
2167
- *
2168
- * @see {@link https://discord.com/developers/docs/resources/subscription#list-sku-subscriptions}
2169
- * @param skuId - The SKU id to fetch subscriptions for
2170
- * @param query - The query options for fetching subscriptions
2171
- * @param options - The options for fetching subscriptions
2172
- */
2173
- async getSKUSubscriptions(skuId, query, { signal } = {}) {
2174
- return this.rest.get(import_v108.Routes.skuSubscriptions(skuId), {
2175
- signal,
2176
- query: (0, import_rest6.makeURLSearchParams)(query)
2177
- });
2178
- }
2179
- /**
2180
- * Fetches a subscription for an SKU.
2181
- *
2182
- * @see {@link https://discord.com/developers/docs/resources/subscription#get-sku-subscription}
2183
- * @param skuId - The SKU id to fetch subscription for
2184
- * @param subscriptionId - The subscription id to fetch
2185
- * @param options - The options for fetching the subscription
2186
- */
2187
- async getSKUSubscription(skuId, subscriptionId, { signal } = {}) {
2188
- return this.rest.get(import_v108.Routes.skuSubscription(skuId, subscriptionId), {
2189
- signal
2190
- });
2191
- }
2192
2071
  /**
2193
2072
  * Fetches the entitlements for an application.
2194
2073
  *
2195
- * @see {@link https://discord.com/developers/docs/resources/entitlement#list-entitlements}
2074
+ * @see {@link https://discord.com/developers/docs/monetization/entitlements#list-entitlements}
2196
2075
  * @param applicationId - The application id to fetch entitlements for
2197
2076
  * @param query - The query options for fetching entitlements
2198
2077
  * @param options - The options for fetching entitlements
@@ -2200,13 +2079,13 @@ var MonetizationAPI = class {
2200
2079
  async getEntitlements(applicationId, query, { signal } = {}) {
2201
2080
  return this.rest.get(import_v108.Routes.entitlements(applicationId), {
2202
2081
  signal,
2203
- query: (0, import_rest6.makeURLSearchParams)(query)
2082
+ query: (0, import_rest5.makeURLSearchParams)(query)
2204
2083
  });
2205
2084
  }
2206
2085
  /**
2207
2086
  * Creates a test entitlement for an application's SKU.
2208
2087
  *
2209
- * @see {@link https://discord.com/developers/docs/resources/entitlement#create-test-entitlement}
2088
+ * @see {@link https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement}
2210
2089
  * @param applicationId - The application id to create the entitlement for
2211
2090
  * @param body - The data for creating the entitlement
2212
2091
  * @param options - The options for creating the entitlement
@@ -2220,7 +2099,7 @@ var MonetizationAPI = class {
2220
2099
  /**
2221
2100
  * Deletes a test entitlement for an application's SKU.
2222
2101
  *
2223
- * @see {@link https://discord.com/developers/docs/resources/entitlement#delete-test-entitlement}
2102
+ * @see {@link https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement}
2224
2103
  * @param applicationId - The application id to delete the entitlement for
2225
2104
  * @param entitlementId - The entitlement id to delete
2226
2105
  * @param options - The options for deleting the entitlement
@@ -2231,7 +2110,7 @@ var MonetizationAPI = class {
2231
2110
  /**
2232
2111
  * Marks a given entitlement for the user as consumed. Only available for One-Time Purchase consumable SKUs.
2233
2112
  *
2234
- * @see {@link https://discord.com/developers/docs/resources/entitlement#consume-an-entitlement}
2113
+ * @see {@link https://discord.com/developers/docs/monetization/entitlements#consume-an-entitlement}
2235
2114
  * @param applicationId - The application id to consume the entitlement for
2236
2115
  * @param entitlementId - The entitlement id to consume
2237
2116
  * @param options - The options for consuming the entitlement
@@ -2242,7 +2121,7 @@ var MonetizationAPI = class {
2242
2121
  };
2243
2122
 
2244
2123
  // src/api/oauth2.ts
2245
- var import_rest7 = require("@discordjs/rest");
2124
+ var import_rest6 = require("@discordjs/rest");
2246
2125
  var import_v109 = require("discord-api-types/v10");
2247
2126
  var OAuth2API = class {
2248
2127
  constructor(rest) {
@@ -2259,7 +2138,7 @@ var OAuth2API = class {
2259
2138
  */
2260
2139
  generateAuthorizationURL(options) {
2261
2140
  const url = new URL(`${import_v109.RouteBases.api}${import_v109.Routes.oauth2Authorization()}`);
2262
- url.search = (0, import_rest7.makeURLSearchParams)(options).toString();
2141
+ url.search = (0, import_rest6.makeURLSearchParams)(options).toString();
2263
2142
  return url.toString();
2264
2143
  }
2265
2144
  /**
@@ -2271,7 +2150,7 @@ var OAuth2API = class {
2271
2150
  */
2272
2151
  async tokenExchange(body, { signal } = {}) {
2273
2152
  return this.rest.post(import_v109.Routes.oauth2TokenExchange(), {
2274
- body: (0, import_rest7.makeURLSearchParams)(body),
2153
+ body: (0, import_rest6.makeURLSearchParams)(body),
2275
2154
  passThroughBody: true,
2276
2155
  headers: {
2277
2156
  "Content-Type": "application/x-www-form-urlencoded"
@@ -2289,7 +2168,7 @@ var OAuth2API = class {
2289
2168
  */
2290
2169
  async refreshToken(body, { signal } = {}) {
2291
2170
  return this.rest.post(import_v109.Routes.oauth2TokenExchange(), {
2292
- body: (0, import_rest7.makeURLSearchParams)(body),
2171
+ body: (0, import_rest6.makeURLSearchParams)(body),
2293
2172
  passThroughBody: true,
2294
2173
  headers: {
2295
2174
  "Content-Type": "application/x-www-form-urlencoded"
@@ -2309,7 +2188,7 @@ var OAuth2API = class {
2309
2188
  */
2310
2189
  async getToken(body, { signal } = {}) {
2311
2190
  return this.rest.post(import_v109.Routes.oauth2TokenExchange(), {
2312
- body: (0, import_rest7.makeURLSearchParams)(body),
2191
+ body: (0, import_rest6.makeURLSearchParams)(body),
2313
2192
  passThroughBody: true,
2314
2193
  headers: {
2315
2194
  "Content-Type": "application/x-www-form-urlencoded"
@@ -2351,7 +2230,7 @@ var OAuth2API = class {
2351
2230
  */
2352
2231
  async revokeToken(applicationId, applicationSecret, body, { signal } = {}) {
2353
2232
  await this.rest.post(import_v109.Routes.oauth2TokenRevocation(), {
2354
- body: (0, import_rest7.makeURLSearchParams)(body),
2233
+ body: (0, import_rest6.makeURLSearchParams)(body),
2355
2234
  passThroughBody: true,
2356
2235
  headers: {
2357
2236
  Authorization: `Basic ${btoa(`${applicationId}:${applicationSecret}`)}`,
@@ -2364,7 +2243,7 @@ var OAuth2API = class {
2364
2243
  };
2365
2244
 
2366
2245
  // src/api/poll.ts
2367
- var import_rest8 = require("@discordjs/rest");
2246
+ var import_rest7 = require("@discordjs/rest");
2368
2247
  var import_v1010 = require("discord-api-types/v10");
2369
2248
  var PollAPI = class {
2370
2249
  constructor(rest) {
@@ -2386,7 +2265,7 @@ var PollAPI = class {
2386
2265
  async getAnswerVoters(channelId, messageId, answerId, query, { signal } = {}) {
2387
2266
  return this.rest.get(import_v1010.Routes.pollAnswerVoters(channelId, messageId, answerId), {
2388
2267
  signal,
2389
- query: (0, import_rest8.makeURLSearchParams)(query)
2268
+ query: (0, import_rest7.makeURLSearchParams)(query)
2390
2269
  });
2391
2270
  }
2392
2271
  /**
@@ -2441,30 +2320,8 @@ var RoleConnectionsAPI = class {
2441
2320
  }
2442
2321
  };
2443
2322
 
2444
- // src/api/soundboardSounds.ts
2445
- var import_v1012 = require("discord-api-types/v10");
2446
- var SoundboardSoundsAPI = class {
2447
- constructor(rest) {
2448
- this.rest = rest;
2449
- }
2450
- static {
2451
- __name(this, "SoundboardSoundsAPI");
2452
- }
2453
- /**
2454
- * Fetches all the soundboard default sounds.
2455
- *
2456
- * @see {@link https://discord.com/developers/docs/resources/soundboard#list-default-soundboard-sounds}
2457
- * @param options - The options for fetching the soundboard default sounds.
2458
- */
2459
- async getSoundboardDefaultSounds({ signal } = {}) {
2460
- return this.rest.get(import_v1012.Routes.soundboardDefaultSounds(), {
2461
- signal
2462
- });
2463
- }
2464
- };
2465
-
2466
2323
  // src/api/stageInstances.ts
2467
- var import_v1013 = require("discord-api-types/v10");
2324
+ var import_v1012 = require("discord-api-types/v10");
2468
2325
  var StageInstancesAPI = class {
2469
2326
  constructor(rest) {
2470
2327
  this.rest = rest;
@@ -2480,7 +2337,7 @@ var StageInstancesAPI = class {
2480
2337
  * @param options - The options for creating the new stage instance
2481
2338
  */
2482
2339
  async create(body, { reason, signal } = {}) {
2483
- return this.rest.post(import_v1013.Routes.stageInstances(), {
2340
+ return this.rest.post(import_v1012.Routes.stageInstances(), {
2484
2341
  body,
2485
2342
  reason,
2486
2343
  signal
@@ -2494,7 +2351,7 @@ var StageInstancesAPI = class {
2494
2351
  * @param options - The options for fetching the stage instance
2495
2352
  */
2496
2353
  async get(channelId, { signal } = {}) {
2497
- return this.rest.get(import_v1013.Routes.stageInstance(channelId), { signal });
2354
+ return this.rest.get(import_v1012.Routes.stageInstance(channelId), { signal });
2498
2355
  }
2499
2356
  /**
2500
2357
  * Edits a stage instance
@@ -2505,7 +2362,7 @@ var StageInstancesAPI = class {
2505
2362
  * @param options - The options for editing the stage instance
2506
2363
  */
2507
2364
  async edit(channelId, body, { reason, signal } = {}) {
2508
- return this.rest.patch(import_v1013.Routes.stageInstance(channelId), {
2365
+ return this.rest.patch(import_v1012.Routes.stageInstance(channelId), {
2509
2366
  body,
2510
2367
  reason,
2511
2368
  signal
@@ -2519,12 +2376,12 @@ var StageInstancesAPI = class {
2519
2376
  * @param options - The options for deleting the stage instance
2520
2377
  */
2521
2378
  async delete(channelId, { reason, signal } = {}) {
2522
- await this.rest.delete(import_v1013.Routes.stageInstance(channelId), { reason, signal });
2379
+ await this.rest.delete(import_v1012.Routes.stageInstance(channelId), { reason, signal });
2523
2380
  }
2524
2381
  };
2525
2382
 
2526
2383
  // src/api/sticker.ts
2527
- var import_v1014 = require("discord-api-types/v10");
2384
+ var import_v1013 = require("discord-api-types/v10");
2528
2385
  var StickersAPI = class {
2529
2386
  constructor(rest) {
2530
2387
  this.rest = rest;
@@ -2540,7 +2397,7 @@ var StickersAPI = class {
2540
2397
  * @param options - The options for fetching the sticker pack
2541
2398
  */
2542
2399
  async getStickerPack(packId, { signal } = {}) {
2543
- return this.rest.get(import_v1014.Routes.stickerPack(packId), { signal });
2400
+ return this.rest.get(import_v1013.Routes.stickerPack(packId), { signal });
2544
2401
  }
2545
2402
  /**
2546
2403
  * Fetches all of the sticker packs
@@ -2549,7 +2406,7 @@ var StickersAPI = class {
2549
2406
  * @param options - The options for fetching the sticker packs
2550
2407
  */
2551
2408
  async getStickers({ signal } = {}) {
2552
- return this.rest.get(import_v1014.Routes.stickerPacks(), { signal });
2409
+ return this.rest.get(import_v1013.Routes.stickerPacks(), { signal });
2553
2410
  }
2554
2411
  /**
2555
2412
  * Fetches all of the sticker packs
@@ -2569,12 +2426,12 @@ var StickersAPI = class {
2569
2426
  * @param options - The options for fetching the sticker
2570
2427
  */
2571
2428
  async get(stickerId, { signal } = {}) {
2572
- return this.rest.get(import_v1014.Routes.sticker(stickerId), { signal });
2429
+ return this.rest.get(import_v1013.Routes.sticker(stickerId), { signal });
2573
2430
  }
2574
2431
  };
2575
2432
 
2576
2433
  // src/api/thread.ts
2577
- var import_v1015 = require("discord-api-types/v10");
2434
+ var import_v1014 = require("discord-api-types/v10");
2578
2435
  var ThreadsAPI = class {
2579
2436
  constructor(rest) {
2580
2437
  this.rest = rest;
@@ -2590,7 +2447,7 @@ var ThreadsAPI = class {
2590
2447
  * @param options - The options for joining the thread
2591
2448
  */
2592
2449
  async join(threadId, { signal } = {}) {
2593
- await this.rest.put(import_v1015.Routes.threadMembers(threadId, "@me"), { signal });
2450
+ await this.rest.put(import_v1014.Routes.threadMembers(threadId, "@me"), { signal });
2594
2451
  }
2595
2452
  /**
2596
2453
  * Adds a member to a thread
@@ -2601,7 +2458,7 @@ var ThreadsAPI = class {
2601
2458
  * @param options - The options for adding the member to the thread
2602
2459
  */
2603
2460
  async addMember(threadId, userId, { signal } = {}) {
2604
- await this.rest.put(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2461
+ await this.rest.put(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2605
2462
  }
2606
2463
  /**
2607
2464
  * Removes the current user from a thread
@@ -2611,7 +2468,7 @@ var ThreadsAPI = class {
2611
2468
  * @param options - The options for leaving the thread
2612
2469
  */
2613
2470
  async leave(threadId, { signal } = {}) {
2614
- await this.rest.delete(import_v1015.Routes.threadMembers(threadId, "@me"), { signal });
2471
+ await this.rest.delete(import_v1014.Routes.threadMembers(threadId, "@me"), { signal });
2615
2472
  }
2616
2473
  /**
2617
2474
  * Removes a member from a thread
@@ -2622,7 +2479,7 @@ var ThreadsAPI = class {
2622
2479
  * @param options - The options for removing the member from the thread
2623
2480
  */
2624
2481
  async removeMember(threadId, userId, { signal } = {}) {
2625
- await this.rest.delete(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2482
+ await this.rest.delete(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2626
2483
  }
2627
2484
  /**
2628
2485
  * Fetches a member of a thread
@@ -2633,7 +2490,7 @@ var ThreadsAPI = class {
2633
2490
  * @param options - The options for fetching the member
2634
2491
  */
2635
2492
  async getMember(threadId, userId, { signal } = {}) {
2636
- return this.rest.get(import_v1015.Routes.threadMembers(threadId, userId), { signal });
2493
+ return this.rest.get(import_v1014.Routes.threadMembers(threadId, userId), { signal });
2637
2494
  }
2638
2495
  /**
2639
2496
  * Fetches all members of a thread
@@ -2643,13 +2500,13 @@ var ThreadsAPI = class {
2643
2500
  * @param options - The options for fetching the members
2644
2501
  */
2645
2502
  async getAllMembers(threadId, { signal } = {}) {
2646
- return this.rest.get(import_v1015.Routes.threadMembers(threadId), { signal });
2503
+ return this.rest.get(import_v1014.Routes.threadMembers(threadId), { signal });
2647
2504
  }
2648
2505
  };
2649
2506
 
2650
2507
  // src/api/user.ts
2651
- var import_rest9 = require("@discordjs/rest");
2652
- var import_v1016 = require("discord-api-types/v10");
2508
+ var import_rest8 = require("@discordjs/rest");
2509
+ var import_v1015 = require("discord-api-types/v10");
2653
2510
  var UsersAPI = class {
2654
2511
  constructor(rest) {
2655
2512
  this.rest = rest;
@@ -2665,7 +2522,7 @@ var UsersAPI = class {
2665
2522
  * @param options - The options for fetching the user
2666
2523
  */
2667
2524
  async get(userId, { signal } = {}) {
2668
- return this.rest.get(import_v1016.Routes.user(userId), { signal });
2525
+ return this.rest.get(import_v1015.Routes.user(userId), { signal });
2669
2526
  }
2670
2527
  /**
2671
2528
  * Returns the user object of the requester's account
@@ -2674,7 +2531,7 @@ var UsersAPI = class {
2674
2531
  * @param options - The options for fetching the current user
2675
2532
  */
2676
2533
  async getCurrent({ signal } = {}) {
2677
- return this.rest.get(import_v1016.Routes.user("@me"), { signal });
2534
+ return this.rest.get(import_v1015.Routes.user("@me"), { signal });
2678
2535
  }
2679
2536
  /**
2680
2537
  * Returns a list of partial guild objects the current user is a member of
@@ -2684,8 +2541,8 @@ var UsersAPI = class {
2684
2541
  * @param options - The options for fetching the guilds
2685
2542
  */
2686
2543
  async getGuilds(query = {}, { signal } = {}) {
2687
- return this.rest.get(import_v1016.Routes.userGuilds(), {
2688
- query: (0, import_rest9.makeURLSearchParams)(query),
2544
+ return this.rest.get(import_v1015.Routes.userGuilds(), {
2545
+ query: (0, import_rest8.makeURLSearchParams)(query),
2689
2546
  signal
2690
2547
  });
2691
2548
  }
@@ -2697,7 +2554,7 @@ var UsersAPI = class {
2697
2554
  * @param options - The options for leaving the guild
2698
2555
  */
2699
2556
  async leaveGuild(guildId, { signal } = {}) {
2700
- await this.rest.delete(import_v1016.Routes.userGuild(guildId), { signal });
2557
+ await this.rest.delete(import_v1015.Routes.userGuild(guildId), { signal });
2701
2558
  }
2702
2559
  /**
2703
2560
  * Edits the current user
@@ -2707,7 +2564,7 @@ var UsersAPI = class {
2707
2564
  * @param options - The options for editing the user
2708
2565
  */
2709
2566
  async edit(body, { signal } = {}) {
2710
- return this.rest.patch(import_v1016.Routes.user("@me"), { body, signal });
2567
+ return this.rest.patch(import_v1015.Routes.user("@me"), { body, signal });
2711
2568
  }
2712
2569
  /**
2713
2570
  * Fetches the guild member for the current user
@@ -2717,7 +2574,7 @@ var UsersAPI = class {
2717
2574
  * @param options - The options for fetching the guild member
2718
2575
  */
2719
2576
  async getGuildMember(guildId, { signal } = {}) {
2720
- return this.rest.get(import_v1016.Routes.userGuildMember(guildId), { signal });
2577
+ return this.rest.get(import_v1015.Routes.userGuildMember(guildId), { signal });
2721
2578
  }
2722
2579
  /**
2723
2580
  * Edits the guild member for the current user
@@ -2728,7 +2585,7 @@ var UsersAPI = class {
2728
2585
  * @param options - The options for editing the guild member
2729
2586
  */
2730
2587
  async editCurrentGuildMember(guildId, body = {}, { reason, signal } = {}) {
2731
- return this.rest.patch(import_v1016.Routes.guildMember(guildId, "@me"), {
2588
+ return this.rest.patch(import_v1015.Routes.guildMember(guildId, "@me"), {
2732
2589
  reason,
2733
2590
  body,
2734
2591
  signal
@@ -2742,7 +2599,7 @@ var UsersAPI = class {
2742
2599
  * @param options - The options for opening the DM
2743
2600
  */
2744
2601
  async createDM(userId, { signal } = {}) {
2745
- return this.rest.post(import_v1016.Routes.userChannels(), {
2602
+ return this.rest.post(import_v1015.Routes.userChannels(), {
2746
2603
  body: { recipient_id: userId },
2747
2604
  signal
2748
2605
  });
@@ -2754,7 +2611,7 @@ var UsersAPI = class {
2754
2611
  * @param options - The options for fetching the user's connections
2755
2612
  */
2756
2613
  async getConnections({ signal } = {}) {
2757
- return this.rest.get(import_v1016.Routes.userConnections(), { signal });
2614
+ return this.rest.get(import_v1015.Routes.userConnections(), { signal });
2758
2615
  }
2759
2616
  /**
2760
2617
  * Gets the current user's active application role connection
@@ -2764,7 +2621,7 @@ var UsersAPI = class {
2764
2621
  * @param options - The options for fetching the role connections
2765
2622
  */
2766
2623
  async getApplicationRoleConnection(applicationId, { signal } = {}) {
2767
- return this.rest.get(import_v1016.Routes.userApplicationRoleConnection(applicationId), {
2624
+ return this.rest.get(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2768
2625
  signal
2769
2626
  });
2770
2627
  }
@@ -2777,7 +2634,7 @@ var UsersAPI = class {
2777
2634
  * @param options - The options for updating the application role connection
2778
2635
  */
2779
2636
  async updateApplicationRoleConnection(applicationId, body, { signal } = {}) {
2780
- return this.rest.put(import_v1016.Routes.userApplicationRoleConnection(applicationId), {
2637
+ return this.rest.put(import_v1015.Routes.userApplicationRoleConnection(applicationId), {
2781
2638
  body,
2782
2639
  signal
2783
2640
  });
@@ -2785,8 +2642,8 @@ var UsersAPI = class {
2785
2642
  };
2786
2643
 
2787
2644
  // src/api/webhook.ts
2788
- var import_rest10 = require("@discordjs/rest");
2789
- var import_v1017 = require("discord-api-types/v10");
2645
+ var import_rest9 = require("@discordjs/rest");
2646
+ var import_v1016 = require("discord-api-types/v10");
2790
2647
  var WebhooksAPI = class {
2791
2648
  constructor(rest) {
2792
2649
  this.rest = rest;
@@ -2803,7 +2660,7 @@ var WebhooksAPI = class {
2803
2660
  * @param options - The options for fetching the webhook
2804
2661
  */
2805
2662
  async get(id, { token, signal } = {}) {
2806
- return this.rest.get(import_v1017.Routes.webhook(id, token), {
2663
+ return this.rest.get(import_v1016.Routes.webhook(id, token), {
2807
2664
  signal,
2808
2665
  auth: !token
2809
2666
  });
@@ -2818,7 +2675,7 @@ var WebhooksAPI = class {
2818
2675
  * @param options - The options for editing the webhook
2819
2676
  */
2820
2677
  async edit(id, body, { token, reason, signal } = {}) {
2821
- return this.rest.patch(import_v1017.Routes.webhook(id, token), {
2678
+ return this.rest.patch(import_v1016.Routes.webhook(id, token), {
2822
2679
  reason,
2823
2680
  body,
2824
2681
  signal,
@@ -2834,7 +2691,7 @@ var WebhooksAPI = class {
2834
2691
  * @param options - The options for deleting the webhook
2835
2692
  */
2836
2693
  async delete(id, { token, reason, signal } = {}) {
2837
- await this.rest.delete(import_v1017.Routes.webhook(id, token), {
2694
+ await this.rest.delete(import_v1016.Routes.webhook(id, token), {
2838
2695
  reason,
2839
2696
  signal,
2840
2697
  auth: !token
@@ -2855,8 +2712,8 @@ var WebhooksAPI = class {
2855
2712
  files,
2856
2713
  ...body
2857
2714
  }, { signal } = {}) {
2858
- return this.rest.post(import_v1017.Routes.webhook(id, token), {
2859
- query: (0, import_rest10.makeURLSearchParams)({ wait, thread_id }),
2715
+ return this.rest.post(import_v1016.Routes.webhook(id, token), {
2716
+ query: (0, import_rest9.makeURLSearchParams)({ wait, thread_id }),
2860
2717
  files,
2861
2718
  body,
2862
2719
  auth: false,
@@ -2875,8 +2732,8 @@ var WebhooksAPI = class {
2875
2732
  * @param options - The options for executing the webhook
2876
2733
  */
2877
2734
  async executeSlack(id, token, body, query = {}, { signal } = {}) {
2878
- await this.rest.post(import_v1017.Routes.webhookPlatform(id, token, "slack"), {
2879
- query: (0, import_rest10.makeURLSearchParams)(query),
2735
+ await this.rest.post(import_v1016.Routes.webhookPlatform(id, token, "slack"), {
2736
+ query: (0, import_rest9.makeURLSearchParams)(query),
2880
2737
  body,
2881
2738
  auth: false,
2882
2739
  signal
@@ -2893,8 +2750,8 @@ var WebhooksAPI = class {
2893
2750
  * @param options - The options for executing the webhook
2894
2751
  */
2895
2752
  async executeGitHub(id, token, body, query = {}, { signal } = {}) {
2896
- await this.rest.post(import_v1017.Routes.webhookPlatform(id, token, "github"), {
2897
- query: (0, import_rest10.makeURLSearchParams)(query),
2753
+ await this.rest.post(import_v1016.Routes.webhookPlatform(id, token, "github"), {
2754
+ query: (0, import_rest9.makeURLSearchParams)(query),
2898
2755
  body,
2899
2756
  signal,
2900
2757
  auth: false
@@ -2911,8 +2768,8 @@ var WebhooksAPI = class {
2911
2768
  * @param options - The options for fetching the message
2912
2769
  */
2913
2770
  async getMessage(id, token, messageId, query = {}, { signal } = {}) {
2914
- return this.rest.get(import_v1017.Routes.webhookMessage(id, token, messageId), {
2915
- query: (0, import_rest10.makeURLSearchParams)(query),
2771
+ return this.rest.get(import_v1016.Routes.webhookMessage(id, token, messageId), {
2772
+ query: (0, import_rest9.makeURLSearchParams)(query),
2916
2773
  auth: false,
2917
2774
  signal
2918
2775
  });
@@ -2932,8 +2789,8 @@ var WebhooksAPI = class {
2932
2789
  files,
2933
2790
  ...body
2934
2791
  }, { signal } = {}) {
2935
- return this.rest.patch(import_v1017.Routes.webhookMessage(id, token, messageId), {
2936
- query: (0, import_rest10.makeURLSearchParams)({ thread_id }),
2792
+ return this.rest.patch(import_v1016.Routes.webhookMessage(id, token, messageId), {
2793
+ query: (0, import_rest9.makeURLSearchParams)({ thread_id }),
2937
2794
  auth: false,
2938
2795
  body,
2939
2796
  signal,
@@ -2951,8 +2808,8 @@ var WebhooksAPI = class {
2951
2808
  * @param options - The options for deleting the message
2952
2809
  */
2953
2810
  async deleteMessage(id, token, messageId, query = {}, { signal } = {}) {
2954
- await this.rest.delete(import_v1017.Routes.webhookMessage(id, token, messageId), {
2955
- query: (0, import_rest10.makeURLSearchParams)(query),
2811
+ await this.rest.delete(import_v1016.Routes.webhookMessage(id, token, messageId), {
2812
+ query: (0, import_rest9.makeURLSearchParams)(query),
2956
2813
  auth: false,
2957
2814
  signal
2958
2815
  });
@@ -2972,7 +2829,6 @@ var API = class {
2972
2829
  this.oauth2 = new OAuth2API(rest);
2973
2830
  this.poll = new PollAPI(rest);
2974
2831
  this.roleConnections = new RoleConnectionsAPI(rest);
2975
- this.soundboardSounds = new SoundboardSoundsAPI(rest);
2976
2832
  this.stageInstances = new StageInstancesAPI(rest);
2977
2833
  this.stickers = new StickersAPI(rest);
2978
2834
  this.threads = new ThreadsAPI(rest);
@@ -2994,7 +2850,6 @@ var API = class {
2994
2850
  oauth2;
2995
2851
  poll;
2996
2852
  roleConnections;
2997
- soundboardSounds;
2998
2853
  stageInstances;
2999
2854
  stickers;
3000
2855
  threads;
@@ -3009,7 +2864,7 @@ var import_util = require("@discordjs/util");
3009
2864
  var import_ws = require("@discordjs/ws");
3010
2865
  var import_snowflake = require("@sapphire/snowflake");
3011
2866
  var import_async_event_emitter = require("@vladfrangu/async_event_emitter");
3012
- var import_v1018 = require("discord-api-types/v10");
2867
+ var import_v1017 = require("discord-api-types/v10");
3013
2868
  var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3014
2869
  static {
3015
2870
  __name(this, "Client");
@@ -3049,7 +2904,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3049
2904
  }, timeout), "createTimer");
3050
2905
  let timer = createTimer();
3051
2906
  await this.gateway.send(shardId, {
3052
- op: import_v1018.GatewayOpcodes.RequestGuildMembers,
2907
+ op: import_v1017.GatewayOpcodes.RequestGuildMembers,
3053
2908
  // eslint-disable-next-line id-length
3054
2909
  d: {
3055
2910
  ...options,
@@ -3057,7 +2912,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3057
2912
  }
3058
2913
  });
3059
2914
  try {
3060
- const iterator = import_async_event_emitter.AsyncEventEmitter.on(this, import_v1018.GatewayDispatchEvents.GuildMembersChunk, {
2915
+ const iterator = import_async_event_emitter.AsyncEventEmitter.on(this, import_v1017.GatewayDispatchEvents.GuildMembersChunk, {
3061
2916
  signal: controller.signal
3062
2917
  });
3063
2918
  for await (const [{ data }] of iterator) {
@@ -3122,7 +2977,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3122
2977
  async updateVoiceState(options) {
3123
2978
  const shardId = (0, import_util.calculateShardId)(options.guild_id, await this.gateway.getShardCount());
3124
2979
  await this.gateway.send(shardId, {
3125
- op: import_v1018.GatewayOpcodes.VoiceStateUpdate,
2980
+ op: import_v1017.GatewayOpcodes.VoiceStateUpdate,
3126
2981
  // eslint-disable-next-line id-length
3127
2982
  d: options
3128
2983
  });
@@ -3135,7 +2990,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
3135
2990
  */
3136
2991
  async updatePresence(shardId, options) {
3137
2992
  await this.gateway.send(shardId, {
3138
- op: import_v1018.GatewayOpcodes.PresenceUpdate,
2993
+ op: import_v1017.GatewayOpcodes.PresenceUpdate,
3139
2994
  // eslint-disable-next-line id-length
3140
2995
  d: options
3141
2996
  });
@@ -3168,7 +3023,7 @@ __name(withFiles, "withFiles");
3168
3023
 
3169
3024
  // src/index.ts
3170
3025
  __reExport(src_exports, require("discord-api-types/v10"), module.exports);
3171
- var version = "2.1.0-dev.1732709132-97ffa201a";
3026
+ var version = "2.1.0-dev.1738965220-519aa3abe";
3172
3027
  // Annotate the CommonJS export names for ESM import in node:
3173
3028
  0 && (module.exports = {
3174
3029
  API,
@@ -3183,7 +3038,6 @@ var version = "2.1.0-dev.1732709132-97ffa201a";
3183
3038
  OAuth2API,
3184
3039
  PollAPI,
3185
3040
  RoleConnectionsAPI,
3186
- SoundboardSoundsAPI,
3187
3041
  StageInstancesAPI,
3188
3042
  StickersAPI,
3189
3043
  ThreadsAPI,