@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/http-only.d.mts +60 -0
- package/dist/http-only.d.ts +60 -0
- package/dist/http-only.js +1 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +1 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +60 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/http-only.d.mts
CHANGED
|
@@ -1443,6 +1443,16 @@ declare class InteractionsAPI {
|
|
|
1443
1443
|
reply(interactionId: Snowflake, interactionToken: string, body: CreateInteractionResponseOptions & {
|
|
1444
1444
|
with_response?: false;
|
|
1445
1445
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1446
|
+
/**
|
|
1447
|
+
* Replies to an interaction
|
|
1448
|
+
*
|
|
1449
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1450
|
+
* @param interactionId - The id of the interaction
|
|
1451
|
+
* @param interactionToken - The token of the interaction
|
|
1452
|
+
* @param body - The callback data for replying
|
|
1453
|
+
* @param options - The options for replying
|
|
1454
|
+
*/
|
|
1455
|
+
reply(interactionId: Snowflake, interactionToken: string, body: CreateInteractionResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1446
1456
|
/**
|
|
1447
1457
|
* Defers the reply to an interaction and returns an interaction callback object
|
|
1448
1458
|
*
|
|
@@ -1467,6 +1477,16 @@ declare class InteractionsAPI {
|
|
|
1467
1477
|
defer(interactionId: Snowflake, interactionToken: string, body?: CreateInteractionDeferResponseOptions & {
|
|
1468
1478
|
with_response?: false;
|
|
1469
1479
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Defers the reply to an interaction
|
|
1482
|
+
*
|
|
1483
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1484
|
+
* @param interactionId - The id of the interaction
|
|
1485
|
+
* @param interactionToken - The token of the interaction
|
|
1486
|
+
* @param body - The callback data for deferring the reply
|
|
1487
|
+
* @param options - The options for deferring
|
|
1488
|
+
*/
|
|
1489
|
+
defer(interactionId: Snowflake, interactionToken: string, body?: CreateInteractionDeferResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1470
1490
|
/**
|
|
1471
1491
|
* Defers an update from a message component interaction and returns an interaction callback object
|
|
1472
1492
|
*
|
|
@@ -1491,6 +1511,16 @@ declare class InteractionsAPI {
|
|
|
1491
1511
|
deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
|
|
1492
1512
|
with_response?: false;
|
|
1493
1513
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1514
|
+
/**
|
|
1515
|
+
* Defers an update from a message component interaction
|
|
1516
|
+
*
|
|
1517
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1518
|
+
* @param interactionId - The id of the interaction
|
|
1519
|
+
* @param interactionToken - The token of the interaction
|
|
1520
|
+
* @param body - The callback data for deferring the update
|
|
1521
|
+
* @param options - The options for deferring
|
|
1522
|
+
*/
|
|
1523
|
+
deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1494
1524
|
/**
|
|
1495
1525
|
* Reply to a deferred interaction
|
|
1496
1526
|
*
|
|
@@ -1557,6 +1587,16 @@ declare class InteractionsAPI {
|
|
|
1557
1587
|
updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: CreateInteractionUpdateMessageResponseOptions & {
|
|
1558
1588
|
with_response?: false;
|
|
1559
1589
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Updates the message the component interaction was triggered on
|
|
1592
|
+
*
|
|
1593
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1594
|
+
* @param interactionId - The id of the interaction
|
|
1595
|
+
* @param interactionToken - The token of the interaction
|
|
1596
|
+
* @param callbackData - The callback data for updating the interaction
|
|
1597
|
+
* @param options - The options for updating the interaction
|
|
1598
|
+
*/
|
|
1599
|
+
updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: CreateInteractionUpdateMessageResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1560
1600
|
/**
|
|
1561
1601
|
* Sends an autocomplete response to an interaction and returns an interaction callback object
|
|
1562
1602
|
*
|
|
@@ -1581,6 +1621,16 @@ declare class InteractionsAPI {
|
|
|
1581
1621
|
createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions & {
|
|
1582
1622
|
with_response?: false;
|
|
1583
1623
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1624
|
+
/**
|
|
1625
|
+
* Sends an autocomplete response to an interaction
|
|
1626
|
+
*
|
|
1627
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1628
|
+
* @param interactionId - The id of the interaction
|
|
1629
|
+
* @param interactionToken - The token of the interaction
|
|
1630
|
+
* @param callbackData - The callback data for the autocomplete response
|
|
1631
|
+
* @param options - The options for sending the autocomplete response
|
|
1632
|
+
*/
|
|
1633
|
+
createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1584
1634
|
/**
|
|
1585
1635
|
* Sends a modal response to an interaction and returns an interaction callback object
|
|
1586
1636
|
*
|
|
@@ -1605,6 +1655,16 @@ declare class InteractionsAPI {
|
|
|
1605
1655
|
createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions & {
|
|
1606
1656
|
with_response?: false;
|
|
1607
1657
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1658
|
+
/**
|
|
1659
|
+
* Sends a modal response to an interaction
|
|
1660
|
+
*
|
|
1661
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1662
|
+
* @param interactionId - The id of the interaction
|
|
1663
|
+
* @param interactionToken - The token of the interaction
|
|
1664
|
+
* @param callbackData - The modal callback data to send
|
|
1665
|
+
* @param options - The options for sending the modal
|
|
1666
|
+
*/
|
|
1667
|
+
createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1608
1668
|
}
|
|
1609
1669
|
|
|
1610
1670
|
declare class InvitesAPI {
|
package/dist/http-only.d.ts
CHANGED
|
@@ -1443,6 +1443,16 @@ declare class InteractionsAPI {
|
|
|
1443
1443
|
reply(interactionId: Snowflake, interactionToken: string, body: CreateInteractionResponseOptions & {
|
|
1444
1444
|
with_response?: false;
|
|
1445
1445
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1446
|
+
/**
|
|
1447
|
+
* Replies to an interaction
|
|
1448
|
+
*
|
|
1449
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1450
|
+
* @param interactionId - The id of the interaction
|
|
1451
|
+
* @param interactionToken - The token of the interaction
|
|
1452
|
+
* @param body - The callback data for replying
|
|
1453
|
+
* @param options - The options for replying
|
|
1454
|
+
*/
|
|
1455
|
+
reply(interactionId: Snowflake, interactionToken: string, body: CreateInteractionResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1446
1456
|
/**
|
|
1447
1457
|
* Defers the reply to an interaction and returns an interaction callback object
|
|
1448
1458
|
*
|
|
@@ -1467,6 +1477,16 @@ declare class InteractionsAPI {
|
|
|
1467
1477
|
defer(interactionId: Snowflake, interactionToken: string, body?: CreateInteractionDeferResponseOptions & {
|
|
1468
1478
|
with_response?: false;
|
|
1469
1479
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Defers the reply to an interaction
|
|
1482
|
+
*
|
|
1483
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1484
|
+
* @param interactionId - The id of the interaction
|
|
1485
|
+
* @param interactionToken - The token of the interaction
|
|
1486
|
+
* @param body - The callback data for deferring the reply
|
|
1487
|
+
* @param options - The options for deferring
|
|
1488
|
+
*/
|
|
1489
|
+
defer(interactionId: Snowflake, interactionToken: string, body?: CreateInteractionDeferResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1470
1490
|
/**
|
|
1471
1491
|
* Defers an update from a message component interaction and returns an interaction callback object
|
|
1472
1492
|
*
|
|
@@ -1491,6 +1511,16 @@ declare class InteractionsAPI {
|
|
|
1491
1511
|
deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery & {
|
|
1492
1512
|
with_response?: false;
|
|
1493
1513
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1514
|
+
/**
|
|
1515
|
+
* Defers an update from a message component interaction
|
|
1516
|
+
*
|
|
1517
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1518
|
+
* @param interactionId - The id of the interaction
|
|
1519
|
+
* @param interactionToken - The token of the interaction
|
|
1520
|
+
* @param body - The callback data for deferring the update
|
|
1521
|
+
* @param options - The options for deferring
|
|
1522
|
+
*/
|
|
1523
|
+
deferMessageUpdate(interactionId: Snowflake, interactionToken: string, body?: RESTPostAPIInteractionCallbackQuery, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1494
1524
|
/**
|
|
1495
1525
|
* Reply to a deferred interaction
|
|
1496
1526
|
*
|
|
@@ -1557,6 +1587,16 @@ declare class InteractionsAPI {
|
|
|
1557
1587
|
updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: CreateInteractionUpdateMessageResponseOptions & {
|
|
1558
1588
|
with_response?: false;
|
|
1559
1589
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Updates the message the component interaction was triggered on
|
|
1592
|
+
*
|
|
1593
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1594
|
+
* @param interactionId - The id of the interaction
|
|
1595
|
+
* @param interactionToken - The token of the interaction
|
|
1596
|
+
* @param callbackData - The callback data for updating the interaction
|
|
1597
|
+
* @param options - The options for updating the interaction
|
|
1598
|
+
*/
|
|
1599
|
+
updateMessage(interactionId: Snowflake, interactionToken: string, callbackData: CreateInteractionUpdateMessageResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1560
1600
|
/**
|
|
1561
1601
|
* Sends an autocomplete response to an interaction and returns an interaction callback object
|
|
1562
1602
|
*
|
|
@@ -1581,6 +1621,16 @@ declare class InteractionsAPI {
|
|
|
1581
1621
|
createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions & {
|
|
1582
1622
|
with_response?: false;
|
|
1583
1623
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1624
|
+
/**
|
|
1625
|
+
* Sends an autocomplete response to an interaction
|
|
1626
|
+
*
|
|
1627
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1628
|
+
* @param interactionId - The id of the interaction
|
|
1629
|
+
* @param interactionToken - The token of the interaction
|
|
1630
|
+
* @param callbackData - The callback data for the autocomplete response
|
|
1631
|
+
* @param options - The options for sending the autocomplete response
|
|
1632
|
+
*/
|
|
1633
|
+
createAutocompleteResponse(interactionId: Snowflake, interactionToken: string, callbackData: CreateAutocompleteResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1584
1634
|
/**
|
|
1585
1635
|
* Sends a modal response to an interaction and returns an interaction callback object
|
|
1586
1636
|
*
|
|
@@ -1605,6 +1655,16 @@ declare class InteractionsAPI {
|
|
|
1605
1655
|
createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions & {
|
|
1606
1656
|
with_response?: false;
|
|
1607
1657
|
}, options?: Pick<RequestData, 'signal'>): Promise<undefined>;
|
|
1658
|
+
/**
|
|
1659
|
+
* Sends a modal response to an interaction
|
|
1660
|
+
*
|
|
1661
|
+
* @see {@link https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response}
|
|
1662
|
+
* @param interactionId - The id of the interaction
|
|
1663
|
+
* @param interactionToken - The token of the interaction
|
|
1664
|
+
* @param callbackData - The modal callback data to send
|
|
1665
|
+
* @param options - The options for sending the modal
|
|
1666
|
+
*/
|
|
1667
|
+
createModal(interactionId: Snowflake, interactionToken: string, callbackData: CreateModalResponseOptions, options?: Pick<RequestData, 'signal'>): Promise<RESTPostAPIInteractionCallbackWithResponseResult | undefined>;
|
|
1608
1668
|
}
|
|
1609
1669
|
|
|
1610
1670
|
declare class InvitesAPI {
|
package/dist/http-only.js
CHANGED
|
@@ -2964,7 +2964,7 @@ __name(withFiles, "withFiles");
|
|
|
2964
2964
|
|
|
2965
2965
|
// src/http-only/index.ts
|
|
2966
2966
|
__reExport(http_only_exports, require("discord-api-types/v10"), module.exports);
|
|
2967
|
-
var version = "3.0.0-dev.
|
|
2967
|
+
var version = "3.0.0-dev.1737633902-687e2ae67";
|
|
2968
2968
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2969
2969
|
0 && (module.exports = {
|
|
2970
2970
|
API,
|