@discordjs/core 3.0.0-dev.1751976363-ee3ca6f7c → 3.0.0-dev.1752192882-35cc57ab9
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 +5 -5
- package/dist/http-only.d.ts +5 -5
- package/dist/http-only.js +23 -11
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +23 -11
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -538,8 +538,13 @@ var ChannelsAPI = class {
|
|
|
538
538
|
* @param body - The new channel data
|
|
539
539
|
* @param options - The options for editing the channel
|
|
540
540
|
*/
|
|
541
|
-
async edit(channelId, body, { auth, signal } = {}) {
|
|
542
|
-
return this.rest.patch(Routes3.channel(channelId), {
|
|
541
|
+
async edit(channelId, body, { auth, signal, reason } = {}) {
|
|
542
|
+
return this.rest.patch(Routes3.channel(channelId), {
|
|
543
|
+
auth,
|
|
544
|
+
reason,
|
|
545
|
+
body,
|
|
546
|
+
signal
|
|
547
|
+
});
|
|
543
548
|
}
|
|
544
549
|
/**
|
|
545
550
|
* Deletes a channel
|
|
@@ -548,8 +553,8 @@ var ChannelsAPI = class {
|
|
|
548
553
|
* @param channelId - The id of the channel to delete
|
|
549
554
|
* @param options - The options for deleting the channel
|
|
550
555
|
*/
|
|
551
|
-
async delete(channelId, { auth, signal } = {}) {
|
|
552
|
-
return this.rest.delete(Routes3.channel(channelId), { auth, signal });
|
|
556
|
+
async delete(channelId, { auth, signal, reason } = {}) {
|
|
557
|
+
return this.rest.delete(Routes3.channel(channelId), { auth, signal, reason });
|
|
553
558
|
}
|
|
554
559
|
/**
|
|
555
560
|
* Fetches the messages of a channel
|
|
@@ -710,11 +715,12 @@ var ChannelsAPI = class {
|
|
|
710
715
|
* @param messageId - The id of the message to start the thread from
|
|
711
716
|
* @param options - The options for starting the thread
|
|
712
717
|
*/
|
|
713
|
-
async createThread(channelId, body, messageId, { auth, signal } = {}) {
|
|
718
|
+
async createThread(channelId, body, messageId, { auth, signal, reason } = {}) {
|
|
714
719
|
return this.rest.post(Routes3.threads(channelId, messageId), {
|
|
715
720
|
auth,
|
|
716
721
|
body,
|
|
717
|
-
signal
|
|
722
|
+
signal,
|
|
723
|
+
reason
|
|
718
724
|
});
|
|
719
725
|
}
|
|
720
726
|
/**
|
|
@@ -725,13 +731,19 @@ var ChannelsAPI = class {
|
|
|
725
731
|
* @param body - The data for starting the thread
|
|
726
732
|
* @param options - The options for starting the thread
|
|
727
733
|
*/
|
|
728
|
-
async createForumThread(channelId, { message, ...optionsBody }, { auth, signal } = {}) {
|
|
734
|
+
async createForumThread(channelId, { message, ...optionsBody }, { auth, signal, reason } = {}) {
|
|
729
735
|
const { files, ...messageBody } = message;
|
|
730
736
|
const body = {
|
|
731
737
|
...optionsBody,
|
|
732
738
|
message: messageBody
|
|
733
739
|
};
|
|
734
|
-
return this.rest.post(Routes3.threads(channelId), {
|
|
740
|
+
return this.rest.post(Routes3.threads(channelId), {
|
|
741
|
+
auth,
|
|
742
|
+
files,
|
|
743
|
+
body,
|
|
744
|
+
reason,
|
|
745
|
+
signal
|
|
746
|
+
});
|
|
735
747
|
}
|
|
736
748
|
/**
|
|
737
749
|
* Fetches the archived threads of a channel
|
|
@@ -916,8 +928,8 @@ var GuildsAPI = class {
|
|
|
916
928
|
* @param guildId - The id of the guild to delete
|
|
917
929
|
* @param options - The options for deleting this guild
|
|
918
930
|
*/
|
|
919
|
-
async delete(guildId, { auth,
|
|
920
|
-
await this.rest.delete(Routes4.guild(guildId), { auth,
|
|
931
|
+
async delete(guildId, { auth, signal } = {}) {
|
|
932
|
+
await this.rest.delete(Routes4.guild(guildId), { auth, signal });
|
|
921
933
|
}
|
|
922
934
|
/**
|
|
923
935
|
* Adds user to the guild
|
|
@@ -3326,7 +3338,7 @@ __name(withFiles, "withFiles");
|
|
|
3326
3338
|
|
|
3327
3339
|
// src/index.ts
|
|
3328
3340
|
export * from "discord-api-types/v10";
|
|
3329
|
-
var version = "3.0.0-dev.
|
|
3341
|
+
var version = "3.0.0-dev.1752192882-35cc57ab9";
|
|
3330
3342
|
export {
|
|
3331
3343
|
API,
|
|
3332
3344
|
ApplicationCommandsAPI,
|