@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.
package/dist/index.d.mts CHANGED
@@ -1502,7 +1502,7 @@ declare class InteractionsAPI {
1502
1502
  */
1503
1503
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body: RESTPostAPIInteractionCallbackQuery & {
1504
1504
  with_response: true;
1505
- }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1505
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1506
1506
  /**
1507
1507
  * Defers an update from a message component interaction
1508
1508
  *
@@ -1514,7 +1514,7 @@ declare class InteractionsAPI {
1514
1514
  */
1515
1515
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
1516
1516
  with_response?: false;
1517
- }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1517
+ }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1518
1518
  /**
1519
1519
  * Reply to a deferred interaction
1520
1520
  *
@@ -1592,7 +1592,7 @@ declare class InteractionsAPI {
1592
1592
  */
1593
1593
  createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions & {
1594
1594
  with_response: true;
1595
- }, options?: Pick<RequestData, 'signal'>): Promise<APICommandAutocompleteInteractionResponseCallbackData>;
1595
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1596
1596
  /**
1597
1597
  * Sends an autocomplete response to an interaction
1598
1598
  *
package/dist/index.d.ts CHANGED
@@ -1502,7 +1502,7 @@ declare class InteractionsAPI {
1502
1502
  */
1503
1503
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body: RESTPostAPIInteractionCallbackQuery & {
1504
1504
  with_response: true;
1505
- }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1505
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1506
1506
  /**
1507
1507
  * Defers an update from a message component interaction
1508
1508
  *
@@ -1514,7 +1514,7 @@ declare class InteractionsAPI {
1514
1514
  */
1515
1515
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
1516
1516
  with_response?: false;
1517
- }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1517
+ }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1518
1518
  /**
1519
1519
  * Reply to a deferred interaction
1520
1520
  *
@@ -1592,7 +1592,7 @@ declare class InteractionsAPI {
1592
1592
  */
1593
1593
  createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions & {
1594
1594
  with_response: true;
1595
- }, options?: Pick<RequestData, 'signal'>): Promise<APICommandAutocompleteInteractionResponseCallbackData>;
1595
+ }, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult>;
1596
1596
  /**
1597
1597
  * Sends an autocomplete response to an interaction
1598
1598
  *
package/dist/index.js CHANGED
@@ -2045,6 +2045,7 @@ var InteractionsAPI = class {
2045
2045
  }
2046
2046
  async updateMessage(interactionId, interactionToken, { files, with_response, ...data }, { signal } = {}) {
2047
2047
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2048
+ query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2048
2049
  files,
2049
2050
  auth: false,
2050
2051
  body: {
@@ -2057,6 +2058,7 @@ var InteractionsAPI = class {
2057
2058
  }
2058
2059
  async createAutocompleteResponse(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
2059
2060
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2061
+ query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2060
2062
  auth: false,
2061
2063
  body: {
2062
2064
  type: import_v106.InteractionResponseType.ApplicationCommandAutocompleteResult,
@@ -2068,6 +2070,7 @@ var InteractionsAPI = class {
2068
2070
  }
2069
2071
  async createModal(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
2070
2072
  const response = await this.rest.post(import_v106.Routes.interactionCallback(interactionId, interactionToken), {
2073
+ query: (0, import_rest4.makeURLSearchParams)({ with_response }),
2071
2074
  auth: false,
2072
2075
  body: {
2073
2076
  type: import_v106.InteractionResponseType.Modal,
@@ -3163,7 +3166,7 @@ __name(withFiles, "withFiles");
3163
3166
 
3164
3167
  // src/index.ts
3165
3168
  __reExport(src_exports, require("discord-api-types/v10"), module.exports);
3166
- var version = "3.0.0-dev.1733443981-00dceb32b";
3169
+ var version = "3.0.0-dev.1733745919-310563ba0";
3167
3170
  // Annotate the CommonJS export names for ESM import in node:
3168
3171
  0 && (module.exports = {
3169
3172
  API,