@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/index.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 all members of a thread
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 getAllMembers(threadId, { auth, signal } = {}) {
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
  };
@@ -3412,7 +3428,7 @@ __name(withFiles, "withFiles");
3412
3428
  // src/index.ts
3413
3429
  export * from "discord-api-types/v10";
3414
3430
  import { GatewayRateLimitError as GatewayRateLimitError2 } from "@discordjs/util";
3415
- var version = "3.0.0-dev.1776730371-8ea7c7c7e";
3431
+ var version = "3.0.0-dev.1779528402-e721e51b0";
3416
3432
  export {
3417
3433
  API,
3418
3434
  ApplicationCommandsAPI,