@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/http-only.d.mts +51 -39
- package/dist/http-only.d.ts +51 -39
- package/dist/http-only.js +7 -30
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +7 -30
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +51 -39
- package/dist/index.d.ts +51 -39
- package/dist/index.js +7 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/http-only.mjs
CHANGED
|
@@ -1912,11 +1912,7 @@ var InteractionsAPI = class {
|
|
|
1912
1912
|
static {
|
|
1913
1913
|
__name(this, "InteractionsAPI");
|
|
1914
1914
|
}
|
|
1915
|
-
async reply(interactionId, interactionToken, {
|
|
1916
|
-
files,
|
|
1917
|
-
with_response,
|
|
1918
|
-
...data
|
|
1919
|
-
}, { signal } = {}) {
|
|
1915
|
+
async reply(interactionId, interactionToken, { files, with_response, ...data }, { signal } = {}) {
|
|
1920
1916
|
const response = await this.rest.post(Routes6.interactionCallback(interactionId, interactionToken), {
|
|
1921
1917
|
query: makeURLSearchParams4({ with_response }),
|
|
1922
1918
|
files,
|
|
@@ -1929,10 +1925,7 @@ var InteractionsAPI = class {
|
|
|
1929
1925
|
});
|
|
1930
1926
|
return with_response ? response : void 0;
|
|
1931
1927
|
}
|
|
1932
|
-
async defer(interactionId, interactionToken, {
|
|
1933
|
-
with_response,
|
|
1934
|
-
...data
|
|
1935
|
-
} = {}, { signal } = {}) {
|
|
1928
|
+
async defer(interactionId, interactionToken, { with_response, ...data } = {}, { signal } = {}) {
|
|
1936
1929
|
const response = await this.rest.post(Routes6.interactionCallback(interactionId, interactionToken), {
|
|
1937
1930
|
query: makeURLSearchParams4({ with_response }),
|
|
1938
1931
|
auth: false,
|
|
@@ -2013,11 +2006,7 @@ var InteractionsAPI = class {
|
|
|
2013
2006
|
async deleteReply(applicationId, interactionToken, messageId, { signal } = {}) {
|
|
2014
2007
|
await this.webhooks.deleteMessage(applicationId, interactionToken, messageId ?? "@original", {}, { signal });
|
|
2015
2008
|
}
|
|
2016
|
-
async updateMessage(interactionId, interactionToken, {
|
|
2017
|
-
files,
|
|
2018
|
-
with_response,
|
|
2019
|
-
...data
|
|
2020
|
-
}, { signal } = {}) {
|
|
2009
|
+
async updateMessage(interactionId, interactionToken, { files, with_response, ...data }, { signal } = {}) {
|
|
2021
2010
|
const response = await this.rest.post(Routes6.interactionCallback(interactionId, interactionToken), {
|
|
2022
2011
|
files,
|
|
2023
2012
|
auth: false,
|
|
@@ -2029,10 +2018,7 @@ var InteractionsAPI = class {
|
|
|
2029
2018
|
});
|
|
2030
2019
|
return with_response ? response : void 0;
|
|
2031
2020
|
}
|
|
2032
|
-
async createAutocompleteResponse(interactionId, interactionToken, {
|
|
2033
|
-
with_response,
|
|
2034
|
-
...data
|
|
2035
|
-
}, { signal } = {}) {
|
|
2021
|
+
async createAutocompleteResponse(interactionId, interactionToken, { with_response, ...data }, { signal } = {}) {
|
|
2036
2022
|
const response = await this.rest.post(Routes6.interactionCallback(interactionId, interactionToken), {
|
|
2037
2023
|
auth: false,
|
|
2038
2024
|
body: {
|
|
@@ -2836,12 +2822,7 @@ var WebhooksAPI = class {
|
|
|
2836
2822
|
* @param body - The data for executing the webhook
|
|
2837
2823
|
* @param options - The options for executing the webhook
|
|
2838
2824
|
*/
|
|
2839
|
-
async execute(id, token, {
|
|
2840
|
-
wait,
|
|
2841
|
-
thread_id,
|
|
2842
|
-
files,
|
|
2843
|
-
...body
|
|
2844
|
-
}, { signal } = {}) {
|
|
2825
|
+
async execute(id, token, { wait, thread_id, files, ...body }, { signal } = {}) {
|
|
2845
2826
|
return this.rest.post(Routes17.webhook(id, token), {
|
|
2846
2827
|
query: makeURLSearchParams10({ wait, thread_id }),
|
|
2847
2828
|
files,
|
|
@@ -2914,11 +2895,7 @@ var WebhooksAPI = class {
|
|
|
2914
2895
|
* @param body - The data for editing the message
|
|
2915
2896
|
* @param options - The options for editing the message
|
|
2916
2897
|
*/
|
|
2917
|
-
async editMessage(id, token, messageId, {
|
|
2918
|
-
thread_id,
|
|
2919
|
-
files,
|
|
2920
|
-
...body
|
|
2921
|
-
}, { signal } = {}) {
|
|
2898
|
+
async editMessage(id, token, messageId, { thread_id, files, ...body }, { signal } = {}) {
|
|
2922
2899
|
return this.rest.patch(Routes17.webhookMessage(id, token, messageId), {
|
|
2923
2900
|
query: makeURLSearchParams10({ thread_id }),
|
|
2924
2901
|
auth: false,
|
|
@@ -3009,7 +2986,7 @@ __name(withFiles, "withFiles");
|
|
|
3009
2986
|
|
|
3010
2987
|
// src/http-only/index.ts
|
|
3011
2988
|
export * from "discord-api-types/v10";
|
|
3012
|
-
var version = "3.0.0-dev.
|
|
2989
|
+
var version = "3.0.0-dev.1733400321-abf4b6103";
|
|
3013
2990
|
export {
|
|
3014
2991
|
API,
|
|
3015
2992
|
ApplicationCommandsAPI,
|