@discordjs/core 3.0.0-dev.1733443981-00dceb32b → 3.0.0-dev.1733745919-310563ba0

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.
@@ -1499,7 +1499,7 @@ declare class InteractionsAPI {
1499
1499
  */
1500
1500
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body: RESTPostAPIInteractionCallbackQuery & {
1501
1501
  with_response: true;
1502
- }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1502
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1503
1503
  /**
1504
1504
  * Defers an update from a message component interaction
1505
1505
  *
@@ -1511,7 +1511,7 @@ declare class InteractionsAPI {
1511
1511
  */
1512
1512
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
1513
1513
  with_response?: false;
1514
- }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1514
+ }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1515
1515
  /**
1516
1516
  * Reply to a deferred interaction
1517
1517
  *
@@ -1589,7 +1589,7 @@ declare class InteractionsAPI {
1589
1589
  */
1590
1590
  createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions & {
1591
1591
  with_response: true;
1592
- }, options?: Pick<RequestData, 'signal'>): Promise<APICommandAutocompleteInteractionResponseCallbackData>;
1592
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1593
1593
  /**
1594
1594
  * Sends an autocomplete response to an interaction
1595
1595
  *
@@ -1499,7 +1499,7 @@ declare class InteractionsAPI {
1499
1499
  */
1500
1500
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body: RESTPostAPIInteractionCallbackQuery & {
1501
1501
  with_response: true;
1502
- }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1502
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1503
1503
  /**
1504
1504
  * Defers an update from a message component interaction
1505
1505
  *
@@ -1511,7 +1511,7 @@ declare class InteractionsAPI {
1511
1511
  */
1512
1512
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
1513
1513
  with_response?: false;
1514
- }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1514
+ }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1515
1515
  /**
1516
1516
  * Reply to a deferred interaction
1517
1517
  *
@@ -1589,7 +1589,7 @@ declare class InteractionsAPI {
1589
1589
  */
1590
1590
  createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions & {
1591
1591
  with_response: true;
1592
- }, options?: Pick<RequestData, 'signal'>): Promise<APICommandAutocompleteInteractionResponseCallbackData>;
1592
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1593
1593
  /**
1594
1594
  * Sends an autocomplete response to an interaction
1595
1595
  *
package/dist/http-only.js CHANGED
@@ -2044,6 +2044,7 @@ var InteractionsAPI = class {
2044
2044
  }
2045
2045
  async updateMessage(interactionId, interactionToken, { files, with_response, ...data }, { signal } = {}) {
2046
2046
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2047
+ query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2047
2048
  files,
2048
2049
  auth: false,
2049
2050
  body: {
@@ -2056,6 +2057,7 @@ var InteractionsAPI = class {
2056
2057
  }
2057
2058
  async createAutocompleteResponse(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
2058
2059
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2060
+ query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2059
2061
  auth: false,
2060
2062
  body: {
2061
2063
  type: import_v106.InteractionResponseType.ApplicationCommandAutocompleteResult,
@@ -2067,6 +2069,7 @@ var InteractionsAPI = class {
2067
2069
  }
2068
2070
  async createModal(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
2069
2071
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2072
+ query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2070
2073
  auth: false,
2071
2074
  body: {
2072
2075
  type: import_v106.InteractionResponseType.Modal,
@@ -3016,7 +3019,7 @@ __name(withFiles, "withFiles");
3016
3019
 
3017
3020
  // src/http-only/index.ts
3018
3021
  __reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
3019
- var version = "3.0.0-dev.1733443981-00dceb32b";
3022
+ var version = "3.0.0-dev.1733745919-310563ba0";
3020
3023
  // Annotate the CommonJS export names for ESM import in node:
3021
3024
  0 && (module.exports = {
3022
3025
  API,