@discordjs/builders 2.0.0-dev.1790035407-dbb749062 → 2.0.0-dev.1790769779-eec9b8f9a

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
@@ -1645,10 +1645,7 @@ var sectionPredicate = z6.object({
1645
1645
  type: z6.literal(ComponentType15.Section),
1646
1646
  id: idPredicate,
1647
1647
  components: z6.array(textDisplayPredicate).min(1).max(3),
1648
- accessory: z6.union([
1649
- z6.object({ type: z6.literal(ComponentType15.Button) }),
1650
- z6.object({ type: z6.literal(ComponentType15.Thumbnail) })
1651
- ])
1648
+ accessory: z6.union([buttonPredicate, thumbnailPredicate])
1652
1649
  });
1653
1650
  var containerPredicate = z6.object({
1654
1651
  type: z6.literal(ComponentType15.Container),
@@ -2225,7 +2222,7 @@ var SectionBuilder = class extends ComponentBuilder {
2225
2222
  const data = {
2226
2223
  ...structuredClone(rest),
2227
2224
  components: components.map((component) => component.toJSON(false)),
2228
- accessory: accessory?.toJSON(validationOverride)
2225
+ accessory: accessory?.toJSON(false)
2229
2226
  };
2230
2227
  validate(sectionPredicate, data, validationOverride);
2231
2228
  return data;
@@ -2766,7 +2763,9 @@ var ApplicationCommandOptionAllowedChannelTypes = [
2766
2763
  ChannelType2.PrivateThread,
2767
2764
  ChannelType2.GuildStageVoice,
2768
2765
  ChannelType2.GuildForum,
2769
- ChannelType2.GuildMedia
2766
+ ChannelType2.GuildMedia,
2767
+ ChannelType2.DM,
2768
+ ChannelType2.GroupDM
2770
2769
  ];
2771
2770
  var ApplicationCommandOptionChannelTypesMixin = class {
2772
2771
  static {
@@ -5977,7 +5976,7 @@ var MessageBuilder = class {
5977
5976
  };
5978
5977
 
5979
5978
  // src/index.ts
5980
- var version = "2.0.0-dev.1790035407-dbb749062";
5979
+ var version = "2.0.0-dev.1790769779-eec9b8f9a";
5981
5980
  export {
5982
5981
  ActionRowBuilder,
5983
5982
  AllowedMentionsBuilder,