@discordjs/core 3.0.0-dev.1776730371-8ea7c7c7e → 3.0.0-dev.1779528402-e721e51b0
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 +13 -3
- package/dist/http-only.d.ts +13 -3
- package/dist/http-only.js +20 -4
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +20 -4
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/http-only.mjs
CHANGED
|
@@ -344,6 +344,20 @@ var ApplicationsAPI = class {
|
|
|
344
344
|
async deleteEmoji(applicationId, emojiId, { auth, signal } = {}) {
|
|
345
345
|
await this.rest.delete(Routes2.applicationEmoji(applicationId, emojiId), { auth, signal });
|
|
346
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Fetches an activity instance of an application
|
|
349
|
+
*
|
|
350
|
+
* @see {@link https://docs.discord.com/developers/resources/application#get-application-activity-instance}
|
|
351
|
+
* @param applicationId - The id of the application to fetch the activity instance of
|
|
352
|
+
* @param instanceId - The id of the activity instance to fetch
|
|
353
|
+
* @param options - The options for fetching the activity instance
|
|
354
|
+
*/
|
|
355
|
+
async getActivityInstance(applicationId, instanceId, { auth, signal } = {}) {
|
|
356
|
+
return this.rest.get(Routes2.applicationActivityInstance(applicationId, instanceId), {
|
|
357
|
+
auth,
|
|
358
|
+
signal
|
|
359
|
+
});
|
|
360
|
+
}
|
|
347
361
|
};
|
|
348
362
|
|
|
349
363
|
// src/api/channel.ts
|
|
@@ -2701,16 +2715,18 @@ var ThreadsAPI = class {
|
|
|
2701
2715
|
});
|
|
2702
2716
|
}
|
|
2703
2717
|
/**
|
|
2704
|
-
* Fetches
|
|
2718
|
+
* Fetches members of a thread
|
|
2705
2719
|
*
|
|
2706
2720
|
* @see {@link https://discord.com/developers/docs/resources/channel#list-thread-members}
|
|
2707
2721
|
* @param threadId - The id of the thread to fetch the members from
|
|
2722
|
+
* @param query - The query for fetching the members
|
|
2708
2723
|
* @param options - The options for fetching the members
|
|
2709
2724
|
*/
|
|
2710
|
-
async
|
|
2725
|
+
async getMembers(threadId, query = {}, { auth, signal } = {}) {
|
|
2711
2726
|
return this.rest.get(Routes15.threadMembers(threadId), {
|
|
2712
2727
|
auth,
|
|
2713
|
-
signal
|
|
2728
|
+
signal,
|
|
2729
|
+
query: makeURLSearchParams9(query)
|
|
2714
2730
|
});
|
|
2715
2731
|
}
|
|
2716
2732
|
};
|
|
@@ -3172,7 +3188,7 @@ __name(withFiles, "withFiles");
|
|
|
3172
3188
|
|
|
3173
3189
|
// src/http-only/index.ts
|
|
3174
3190
|
export * from "discord-api-types/v10";
|
|
3175
|
-
var version = "3.0.0-dev.
|
|
3191
|
+
var version = "3.0.0-dev.1779528402-e721e51b0";
|
|
3176
3192
|
export {
|
|
3177
3193
|
API,
|
|
3178
3194
|
ApplicationCommandsAPI,
|