@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/http-only.d.mts +8 -7
- package/dist/http-only.d.ts +8 -7
- package/dist/http-only.js +15 -10
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +15 -10
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +15 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/http-only.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
|
|
585
|
+
* Fetches pinned messages of a channel
|
|
586
586
|
*
|
|
587
|
-
* @see {@link https://discord.com/developers/docs/resources/
|
|
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
|
|
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.
|
|
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/
|
|
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.
|
|
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/
|
|
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.
|
|
669
|
+
await this.rest.delete(Routes3.channelMessagesPin(channelId, messageId), { auth, reason, signal });
|
|
665
670
|
}
|
|
666
671
|
/**
|
|
667
672
|
* Follows an announcement channel
|
|
@@ -3111,7 +3116,7 @@ __name(withFiles, "withFiles");
|
|
|
3111
3116
|
|
|
3112
3117
|
// src/http-only/index.ts
|
|
3113
3118
|
export * from "discord-api-types/v10";
|
|
3114
|
-
var version = "3.0.0-dev.
|
|
3119
|
+
var version = "3.0.0-dev.1752538512-5a611be8d";
|
|
3115
3120
|
export {
|
|
3116
3121
|
API,
|
|
3117
3122
|
ApplicationCommandsAPI,
|