@discordjs/core 3.0.0-dev.1752452154-7e3d4e536 → 3.0.0-dev.1752538512-5a611be8d

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
@@ -582,25 +582,30 @@ var ChannelsAPI = class {
582
582
  await this.rest.post(Routes3.channelTyping(channelId), { auth, signal });
583
583
  }
584
584
  /**
585
- * Fetches the pinned messages of a channel
585
+ * Fetches pinned messages of a channel
586
586
  *
587
- * @see {@link https://discord.com/developers/docs/resources/channel#get-pinned-messages}
587
+ * @see {@link https://discord.com/developers/docs/resources/message#get-channel-pins}
588
588
  * @param channelId - The id of the channel to fetch pinned messages from
589
- * @param options - The options for fetching the pinned messages
589
+ * @param query - The query options for fetching pinned messages
590
+ * @param options - The options for fetching pinned messages
590
591
  */
591
- async getPins(channelId, { auth, signal } = {}) {
592
- return this.rest.get(Routes3.channelPins(channelId), { auth, signal });
592
+ async getPins(channelId, query = {}, { auth, signal } = {}) {
593
+ return this.rest.get(Routes3.channelMessagesPins(channelId), {
594
+ auth,
595
+ query: makeURLSearchParams2(query),
596
+ signal
597
+ });
593
598
  }
594
599
  /**
595
600
  * Pins a message in a channel
596
601
  *
597
- * @see {@link https://discord.com/developers/docs/resources/channel#pin-message}
602
+ * @see {@link https://discord.com/developers/docs/resources/message#pin-message}
598
603
  * @param channelId - The id of the channel to pin the message in
599
604
  * @param messageId - The id of the message to pin
600
605
  * @param options - The options for pinning the message
601
606
  */
602
607
  async pinMessage(channelId, messageId, { auth, reason, signal } = {}) {
603
- await this.rest.put(Routes3.channelPin(channelId, messageId), { auth, reason, signal });
608
+ await this.rest.put(Routes3.channelMessagesPin(channelId, messageId), { auth, reason, signal });
604
609
  }
605
610
  /**
606
611
  * Deletes a message
@@ -655,13 +660,13 @@ var ChannelsAPI = class {
655
660
  /**
656
661
  * Unpins a message in a channel
657
662
  *
658
- * @see {@link https://discord.com/developers/docs/resources/channel#unpin-message}
663
+ * @see {@link https://discord.com/developers/docs/resources/message#unpin-message}
659
664
  * @param channelId - The id of the channel to unpin the message in
660
665
  * @param messageId - The id of the message to unpin
661
666
  * @param options - The options for unpinning the message
662
667
  */
663
668
  async unpinMessage(channelId, messageId, { auth, reason, signal } = {}) {
664
- await this.rest.delete(Routes3.channelPin(channelId, messageId), { auth, reason, signal });
669
+ await this.rest.delete(Routes3.channelMessagesPin(channelId, messageId), { auth, reason, signal });
665
670
  }
666
671
  /**
667
672
  * Follows an announcement channel
@@ -3338,7 +3343,7 @@ __name(withFiles, "withFiles");
3338
3343
 
3339
3344
  // src/index.ts
3340
3345
  export * from "discord-api-types/v10";
3341
- var version = "3.0.0-dev.1752452154-7e3d4e536";
3346
+ var version = "3.0.0-dev.1752538512-5a611be8d";
3342
3347
  export {
3343
3348
  API,
3344
3349
  ApplicationCommandsAPI,