@discordjs/core 3.0.0-dev.1737227218-9ad40b751 → 3.0.0-dev.1737633902-687e2ae67

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
@@ -1446,6 +1446,16 @@ declare class InteractionsAPI {
1446
1446
  reply(interactionId: Snowflake, interactionToken: string, body: CreateInteractionResponseOptions & {
1447
1447
  with_response?: false;
1448
1448
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1449
+ /**
1450
+ * Replies to an interaction
1451
+ *
1452
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1453
+ * @param interactionId - The id of the interaction
1454
+ * @param interactionToken - The token of the interaction
1455
+ * @param body - The callback data for replying
1456
+ * @param options - The options for replying
1457
+ */
1458
+ reply(interactionId: Snowflake, interactionToken: string, body: CreateInteractionResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1449
1459
  /**
1450
1460
  * Defers the reply to an interaction and returns an interaction callback object
1451
1461
  *
@@ -1470,6 +1480,16 @@ declare class InteractionsAPI {
1470
1480
  defer(interactionId: Snowflake, interactionToken: string, body?: CreateInteractionDeferResponseOptions & {
1471
1481
  with_response?: false;
1472
1482
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1483
+ /**
1484
+ * Defers the reply to an interaction
1485
+ *
1486
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1487
+ * @param interactionId - The id of the interaction
1488
+ * @param interactionToken - The token of the interaction
1489
+ * @param body - The callback data for deferring the reply
1490
+ * @param options - The options for deferring
1491
+ */
1492
+ defer(interactionId: Snowflake, interactionToken: string, body?: CreateInteractionDeferResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1473
1493
  /**
1474
1494
  * Defers an update from a message component interaction and returns an interaction callback object
1475
1495
  *
@@ -1494,6 +1514,16 @@ declare class InteractionsAPI {
1494
1514
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
1495
1515
  with_response?: false;
1496
1516
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1517
+ /**
1518
+ * Defers an update from a message component interaction
1519
+ *
1520
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1521
+ * @param interactionId - The id of the interaction
1522
+ * @param interactionToken - The token of the interaction
1523
+ * @param body - The callback data for deferring the update
1524
+ * @param options - The options for deferring
1525
+ */
1526
+ deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1497
1527
  /**
1498
1528
  * Reply to a deferred interaction
1499
1529
  *
@@ -1560,6 +1590,16 @@ declare class InteractionsAPI {
1560
1590
  updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: CreateInteractionUpdateMessageResponseOptions & {
1561
1591
  with_response?: false;
1562
1592
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1593
+ /**
1594
+ * Updates the message the component interaction was triggered on
1595
+ *
1596
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1597
+ * @param interactionId - The id of the interaction
1598
+ * @param interactionToken - The token of the interaction
1599
+ * @param callbackData - The callback data for updating the interaction
1600
+ * @param options - The options for updating the interaction
1601
+ */
1602
+ updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: CreateInteractionUpdateMessageResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1563
1603
  /**
1564
1604
  * Sends an autocomplete response to an interaction and returns an interaction callback object
1565
1605
  *
@@ -1584,6 +1624,16 @@ declare class InteractionsAPI {
1584
1624
  createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions & {
1585
1625
  with_response?: false;
1586
1626
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1627
+ /**
1628
+ * Sends an autocomplete response to an interaction
1629
+ *
1630
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1631
+ * @param interactionId - The id of the interaction
1632
+ * @param interactionToken - The token of the interaction
1633
+ * @param callbackData - The callback data for the autocomplete response
1634
+ * @param options - The options for sending the autocomplete response
1635
+ */
1636
+ createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1587
1637
  /**
1588
1638
  * Sends a modal response to an interaction and returns an interaction callback object
1589
1639
  *
@@ -1608,6 +1658,16 @@ declare class InteractionsAPI {
1608
1658
  createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions & {
1609
1659
  with_response?: false;
1610
1660
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1661
+ /**
1662
+ * Sends a modal response to an interaction
1663
+ *
1664
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1665
+ * @param interactionId - The id of the interaction
1666
+ * @param interactionToken - The token of the interaction
1667
+ * @param callbackData - The modal callback data to send
1668
+ * @param options - The options for sending the modal
1669
+ */
1670
+ createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1611
1671
  }
1612
1672
 
1613
1673
  declare class InvitesAPI {
package/dist/index.d.ts CHANGED
@@ -1446,6 +1446,16 @@ declare class InteractionsAPI {
1446
1446
  reply(interactionId: Snowflake, interactionToken: string, body: CreateInteractionResponseOptions & {
1447
1447
  with_response?: false;
1448
1448
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1449
+ /**
1450
+ * Replies to an interaction
1451
+ *
1452
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1453
+ * @param interactionId - The id of the interaction
1454
+ * @param interactionToken - The token of the interaction
1455
+ * @param body - The callback data for replying
1456
+ * @param options - The options for replying
1457
+ */
1458
+ reply(interactionId: Snowflake, interactionToken: string, body: CreateInteractionResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1449
1459
  /**
1450
1460
  * Defers the reply to an interaction and returns an interaction callback object
1451
1461
  *
@@ -1470,6 +1480,16 @@ declare class InteractionsAPI {
1470
1480
  defer(interactionId: Snowflake, interactionToken: string, body?: CreateInteractionDeferResponseOptions & {
1471
1481
  with_response?: false;
1472
1482
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1483
+ /**
1484
+ * Defers the reply to an interaction
1485
+ *
1486
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1487
+ * @param interactionId - The id of the interaction
1488
+ * @param interactionToken - The token of the interaction
1489
+ * @param body - The callback data for deferring the reply
1490
+ * @param options - The options for deferring
1491
+ */
1492
+ defer(interactionId: Snowflake, interactionToken: string, body?: CreateInteractionDeferResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1473
1493
  /**
1474
1494
  * Defers an update from a message component interaction and returns an interaction callback object
1475
1495
  *
@@ -1494,6 +1514,16 @@ declare class InteractionsAPI {
1494
1514
  deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
1495
1515
  with_response?: false;
1496
1516
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1517
+ /**
1518
+ * Defers an update from a message component interaction
1519
+ *
1520
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1521
+ * @param interactionId - The id of the interaction
1522
+ * @param interactionToken - The token of the interaction
1523
+ * @param body - The callback data for deferring the update
1524
+ * @param options - The options for deferring
1525
+ */
1526
+ deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1497
1527
  /**
1498
1528
  * Reply to a deferred interaction
1499
1529
  *
@@ -1560,6 +1590,16 @@ declare class InteractionsAPI {
1560
1590
  updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: CreateInteractionUpdateMessageResponseOptions & {
1561
1591
  with_response?: false;
1562
1592
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1593
+ /**
1594
+ * Updates the message the component interaction was triggered on
1595
+ *
1596
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1597
+ * @param interactionId - The id of the interaction
1598
+ * @param interactionToken - The token of the interaction
1599
+ * @param callbackData - The callback data for updating the interaction
1600
+ * @param options - The options for updating the interaction
1601
+ */
1602
+ updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: CreateInteractionUpdateMessageResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1563
1603
  /**
1564
1604
  * Sends an autocomplete response to an interaction and returns an interaction callback object
1565
1605
  *
@@ -1584,6 +1624,16 @@ declare class InteractionsAPI {
1584
1624
  createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions & {
1585
1625
  with_response?: false;
1586
1626
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1627
+ /**
1628
+ * Sends an autocomplete response to an interaction
1629
+ *
1630
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1631
+ * @param interactionId - The id of the interaction
1632
+ * @param interactionToken - The token of the interaction
1633
+ * @param callbackData - The callback data for the autocomplete response
1634
+ * @param options - The options for sending the autocomplete response
1635
+ */
1636
+ createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1587
1637
  /**
1588
1638
  * Sends a modal response to an interaction and returns an interaction callback object
1589
1639
  *
@@ -1608,6 +1658,16 @@ declare class InteractionsAPI {
1608
1658
  createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions & {
1609
1659
  with_response?: false;
1610
1660
  }, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
1661
+ /**
1662
+ * Sends a modal response to an interaction
1663
+ *
1664
+ * @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
1665
+ * @param interactionId - The id of the interaction
1666
+ * @param interactionToken - The token of the interaction
1667
+ * @param callbackData - The modal callback data to send
1668
+ * @param options - The options for sending the modal
1669
+ */
1670
+ createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
1611
1671
  }
1612
1672
 
1613
1673
  declare class InvitesAPI {
package/dist/index.js CHANGED
@@ -3111,7 +3111,7 @@ __name(withFiles, "withFiles");
3111
3111
 
3112
3112
  // src/index.ts
3113
3113
  __reExport(index_exports, require("discord-api-types/v10"), module.exports);
3114
- var version = "3.0.0-dev.1737227218-9ad40b751";
3114
+ var version = "3.0.0-dev.1737633902-687e2ae67";
3115
3115
  // Annotate the CommonJS export names for ESM import in node:
3116
3116
  0 && (module.exports = {
3117
3117
  API,