@discordjs/core 3.0.0-dev.1733184836-bd7a99571 → 3.0.0-dev.1733400321-abf4b6103

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
@@ -1944,11 +1944,7 @@ var InteractionsAPI = class {
1944
1944
  static {
1945
1945
  __name(this, "InteractionsAPI");
1946
1946
  }
1947
- async reply(interactionId, interactionToken, {
1948
- files,
1949
- with_response,
1950
- ...data
1951
- }, { signal } = {}) {
1947
+ async reply(interactionId, interactionToken, { files, with_response, ...data }, { signal } = {}) {
1952
1948
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1953
1949
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
1954
1950
  files,
@@ -1961,10 +1957,7 @@ var InteractionsAPI = class {
1961
1957
  });
1962
1958
  return with_response ? response : void 0;
1963
1959
  }
1964
- async defer(interactionId, interactionToken, {
1965
- with_response,
1966
- ...data
1967
- } = {}, { signal } = {}) {
1960
+ async defer(interactionId, interactionToken, { with_response, ...data } = {}, { signal } = {}) {
1968
1961
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
1969
1962
  query: (0, import_rest4.makeURLSearchParams)({ with_response }),
1970
1963
  auth: false,
@@ -2045,11 +2038,7 @@ var InteractionsAPI = class {
2045
2038
  async deleteReply(applicationId, interactionToken, messageId, { signal } = {}) {
2046
2039
  await this.webhooks.deleteMessage(applicationId, interactionToken, messageId ?? "@original", {}, { signal });
2047
2040
  }
2048
- async updateMessage(interactionId, interactionToken, {
2049
- files,
2050
- with_response,
2051
- ...data
2052
- }, { signal } = {}) {
2041
+ async updateMessage(interactionId, interactionToken, { files, with_response, ...data }, { signal } = {}) {
2053
2042
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2054
2043
  files,
2055
2044
  auth: false,
@@ -2061,10 +2050,7 @@ var InteractionsAPI = class {
2061
2050
  });
2062
2051
  return with_response ? response : void 0;
2063
2052
  }
2064
- async createAutocompleteResponse(interactionId, interactionToken, {
2065
- with_response,
2066
- ...data
2067
- }, { signal } = {}) {
2053
+ async createAutocompleteResponse(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
2068
2054
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2069
2055
  auth: false,
2070
2056
  body: {
@@ -2849,12 +2835,7 @@ var WebhooksAPI = class {
2849
2835
  * @param body - The data for executing the webhook
2850
2836
  * @param options - The options for executing the webhook
2851
2837
  */
2852
- async execute(id, token, {
2853
- wait,
2854
- thread_id,
2855
- files,
2856
- ...body
2857
- }, { signal } = {}) {
2838
+ async execute(id, token, { wait, thread_id, files, ...body }, { signal } = {}) {
2858
2839
  return this.rest.post(import_v1017.Routes.webhook(id, token), {
2859
2840
  query: (0, import_rest10.makeURLSearchParams)({ wait, thread_id }),
2860
2841
  files,
@@ -2927,11 +2908,7 @@ var WebhooksAPI = class {
2927
2908
  * @param body - The data for editing the message
2928
2909
  * @param options - The options for editing the message
2929
2910
  */
2930
- async editMessage(id, token, messageId, {
2931
- thread_id,
2932
- files,
2933
- ...body
2934
- }, { signal } = {}) {
2911
+ async editMessage(id, token, messageId, { thread_id, files, ...body }, { signal } = {}) {
2935
2912
  return this.rest.patch(import_v1017.Routes.webhookMessage(id, token, messageId), {
2936
2913
  query: (0, import_rest10.makeURLSearchParams)({ thread_id }),
2937
2914
  auth: false,
@@ -3168,7 +3145,7 @@ __name(withFiles, "withFiles");
3168
3145
 
3169
3146
  // src/index.ts
3170
3147
  __reExport(src_exports, require("discord-api-types/v10"), module.exports);
3171
- var version = "3.0.0-dev.1733184836-bd7a99571";
3148
+ var version = "3.0.0-dev.1733400321-abf4b6103";
3172
3149
  // Annotate the CommonJS export names for ESM import in node:
3173
3150
  0 && (module.exports = {
3174
3151
  API,