@discordjs/core 2.1.0 → 2.2.0
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 +3 -4
- package/dist/http-only.d.ts +3 -4
- package/dist/http-only.js +5 -3
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +5 -3
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -2697,11 +2697,12 @@ var WebhooksAPI = class {
|
|
|
2697
2697
|
async execute(id, token, {
|
|
2698
2698
|
wait,
|
|
2699
2699
|
thread_id,
|
|
2700
|
+
with_components,
|
|
2700
2701
|
files,
|
|
2701
2702
|
...body
|
|
2702
2703
|
}, { signal } = {}) {
|
|
2703
2704
|
return this.rest.post(Routes16.webhook(id, token), {
|
|
2704
|
-
query: makeURLSearchParams9({ wait, thread_id }),
|
|
2705
|
+
query: makeURLSearchParams9({ wait, thread_id, with_components }),
|
|
2705
2706
|
files,
|
|
2706
2707
|
body,
|
|
2707
2708
|
auth: false,
|
|
@@ -2774,11 +2775,12 @@ var WebhooksAPI = class {
|
|
|
2774
2775
|
*/
|
|
2775
2776
|
async editMessage(id, token, messageId, {
|
|
2776
2777
|
thread_id,
|
|
2778
|
+
with_components,
|
|
2777
2779
|
files,
|
|
2778
2780
|
...body
|
|
2779
2781
|
}, { signal } = {}) {
|
|
2780
2782
|
return this.rest.patch(Routes16.webhookMessage(id, token, messageId), {
|
|
2781
|
-
query: makeURLSearchParams9({ thread_id }),
|
|
2783
|
+
query: makeURLSearchParams9({ thread_id, with_components }),
|
|
2782
2784
|
auth: false,
|
|
2783
2785
|
body,
|
|
2784
2786
|
signal,
|
|
@@ -3014,7 +3016,7 @@ __name(withFiles, "withFiles");
|
|
|
3014
3016
|
|
|
3015
3017
|
// src/index.ts
|
|
3016
3018
|
export * from "discord-api-types/v10";
|
|
3017
|
-
var version = "2.
|
|
3019
|
+
var version = "2.2.0";
|
|
3018
3020
|
export {
|
|
3019
3021
|
API,
|
|
3020
3022
|
ApplicationCommandsAPI,
|