@discordjs/core 3.0.0-dev.1759708922-cf88ef91f → 3.0.0-dev.1759752106-2c08b0f97
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 +15 -2
- package/dist/http-only.d.ts +15 -2
- package/dist/http-only.js +17 -20
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +17 -20
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +17 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/http-only.mjs
CHANGED
|
@@ -2582,6 +2582,7 @@ var StickersAPI = class {
|
|
|
2582
2582
|
};
|
|
2583
2583
|
|
|
2584
2584
|
// src/api/thread.ts
|
|
2585
|
+
import { makeURLSearchParams as makeURLSearchParams9 } from "@discordjs/rest";
|
|
2585
2586
|
import {
|
|
2586
2587
|
Routes as Routes15
|
|
2587
2588
|
} from "discord-api-types/v10";
|
|
@@ -2634,16 +2635,12 @@ var ThreadsAPI = class {
|
|
|
2634
2635
|
async removeMember(threadId, userId, { auth, signal } = {}) {
|
|
2635
2636
|
await this.rest.delete(Routes15.threadMembers(threadId, userId), { auth, signal });
|
|
2636
2637
|
}
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
* @param options - The options for fetching the member
|
|
2644
|
-
*/
|
|
2645
|
-
async getMember(threadId, userId, { auth, signal } = {}) {
|
|
2646
|
-
return this.rest.get(Routes15.threadMembers(threadId, userId), { auth, signal });
|
|
2638
|
+
async getMember(threadId, userId, query = {}, { auth, signal } = {}) {
|
|
2639
|
+
return this.rest.get(Routes15.threadMembers(threadId, userId), {
|
|
2640
|
+
auth,
|
|
2641
|
+
signal,
|
|
2642
|
+
query: makeURLSearchParams9(query)
|
|
2643
|
+
});
|
|
2647
2644
|
}
|
|
2648
2645
|
/**
|
|
2649
2646
|
* Fetches all members of a thread
|
|
@@ -2661,7 +2658,7 @@ var ThreadsAPI = class {
|
|
|
2661
2658
|
};
|
|
2662
2659
|
|
|
2663
2660
|
// src/api/user.ts
|
|
2664
|
-
import { makeURLSearchParams as
|
|
2661
|
+
import { makeURLSearchParams as makeURLSearchParams10 } from "@discordjs/rest";
|
|
2665
2662
|
import {
|
|
2666
2663
|
Routes as Routes16
|
|
2667
2664
|
} from "discord-api-types/v10";
|
|
@@ -2701,7 +2698,7 @@ var UsersAPI = class {
|
|
|
2701
2698
|
async getGuilds(query = {}, { auth, signal } = {}) {
|
|
2702
2699
|
return this.rest.get(Routes16.userGuilds(), {
|
|
2703
2700
|
auth,
|
|
2704
|
-
query:
|
|
2701
|
+
query: makeURLSearchParams10(query),
|
|
2705
2702
|
signal
|
|
2706
2703
|
});
|
|
2707
2704
|
}
|
|
@@ -2886,7 +2883,7 @@ var VoiceAPI = class {
|
|
|
2886
2883
|
};
|
|
2887
2884
|
|
|
2888
2885
|
// src/api/webhook.ts
|
|
2889
|
-
import { makeURLSearchParams as
|
|
2886
|
+
import { makeURLSearchParams as makeURLSearchParams11 } from "@discordjs/rest";
|
|
2890
2887
|
import {
|
|
2891
2888
|
Routes as Routes18
|
|
2892
2889
|
} from "discord-api-types/v10";
|
|
@@ -2954,7 +2951,7 @@ var WebhooksAPI = class {
|
|
|
2954
2951
|
*/
|
|
2955
2952
|
async execute(id, token, { wait, thread_id, with_components, files, ...body }, { signal } = {}) {
|
|
2956
2953
|
return this.rest.post(Routes18.webhook(id, token), {
|
|
2957
|
-
query:
|
|
2954
|
+
query: makeURLSearchParams11({ wait, thread_id, with_components }),
|
|
2958
2955
|
files,
|
|
2959
2956
|
body,
|
|
2960
2957
|
auth: false,
|
|
@@ -2973,7 +2970,7 @@ var WebhooksAPI = class {
|
|
|
2973
2970
|
*/
|
|
2974
2971
|
async executeSlack(id, token, body, query = {}, { signal } = {}) {
|
|
2975
2972
|
await this.rest.post(Routes18.webhookPlatform(id, token, "slack"), {
|
|
2976
|
-
query:
|
|
2973
|
+
query: makeURLSearchParams11(query),
|
|
2977
2974
|
body,
|
|
2978
2975
|
auth: false,
|
|
2979
2976
|
signal
|
|
@@ -2991,7 +2988,7 @@ var WebhooksAPI = class {
|
|
|
2991
2988
|
*/
|
|
2992
2989
|
async executeGitHub(id, token, body, query = {}, { signal } = {}) {
|
|
2993
2990
|
await this.rest.post(Routes18.webhookPlatform(id, token, "github"), {
|
|
2994
|
-
query:
|
|
2991
|
+
query: makeURLSearchParams11(query),
|
|
2995
2992
|
body,
|
|
2996
2993
|
signal,
|
|
2997
2994
|
auth: false
|
|
@@ -3009,7 +3006,7 @@ var WebhooksAPI = class {
|
|
|
3009
3006
|
*/
|
|
3010
3007
|
async getMessage(id, token, messageId, query = {}, { signal } = {}) {
|
|
3011
3008
|
return this.rest.get(Routes18.webhookMessage(id, token, messageId), {
|
|
3012
|
-
query:
|
|
3009
|
+
query: makeURLSearchParams11(query),
|
|
3013
3010
|
auth: false,
|
|
3014
3011
|
signal
|
|
3015
3012
|
});
|
|
@@ -3026,7 +3023,7 @@ var WebhooksAPI = class {
|
|
|
3026
3023
|
*/
|
|
3027
3024
|
async editMessage(id, token, messageId, { thread_id, with_components, files, ...body }, { signal } = {}) {
|
|
3028
3025
|
return this.rest.patch(Routes18.webhookMessage(id, token, messageId), {
|
|
3029
|
-
query:
|
|
3026
|
+
query: makeURLSearchParams11({ thread_id, with_components }),
|
|
3030
3027
|
auth: false,
|
|
3031
3028
|
body,
|
|
3032
3029
|
signal,
|
|
@@ -3045,7 +3042,7 @@ var WebhooksAPI = class {
|
|
|
3045
3042
|
*/
|
|
3046
3043
|
async deleteMessage(id, token, messageId, query = {}, { signal } = {}) {
|
|
3047
3044
|
await this.rest.delete(Routes18.webhookMessage(id, token, messageId), {
|
|
3048
|
-
query:
|
|
3045
|
+
query: makeURLSearchParams11(query),
|
|
3049
3046
|
auth: false,
|
|
3050
3047
|
signal
|
|
3051
3048
|
});
|
|
@@ -3117,7 +3114,7 @@ __name(withFiles, "withFiles");
|
|
|
3117
3114
|
|
|
3118
3115
|
// src/http-only/index.ts
|
|
3119
3116
|
export * from "discord-api-types/v10";
|
|
3120
|
-
var version = "3.0.0-dev.
|
|
3117
|
+
var version = "3.0.0-dev.1759752106-2c08b0f97";
|
|
3121
3118
|
export {
|
|
3122
3119
|
API,
|
|
3123
3120
|
ApplicationCommandsAPI,
|