@discordjs/core 3.0.0-dev.1752020078-bc6005f44 → 3.0.0-dev.1752279250-1f0fe3915

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.
@@ -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), { auth, body, signal });
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), { auth, files, body, signal });
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, reason, signal } = {}) {
920
- await this.rest.delete(Routes4.guild(guildId), { auth, reason, signal });
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
@@ -3099,7 +3111,7 @@ __name(withFiles, "withFiles");
3099
3111
 
3100
3112
  // src/http-only/index.ts
3101
3113
  export * from "discord-api-types/v10";
3102
- var version = "3.0.0-dev.1752020078-bc6005f44";
3114
+ var version = "3.0.0-dev.1752279250-1f0fe3915";
3103
3115
  export {
3104
3116
  API,
3105
3117
  ApplicationCommandsAPI,