@discordjs/builders 2.0.0-dev.1757851336-b66f52f9a → 2.0.0-dev.1758542541-beed098bf

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.d.mts CHANGED
@@ -1888,6 +1888,7 @@ declare const actionRowPredicate: z.ZodObject<{
1888
1888
  }, z.core.$strip>;
1889
1889
 
1890
1890
  declare const thumbnailPredicate: z.ZodObject<{
1891
+ type: z.ZodLiteral<ComponentType.Thumbnail>;
1891
1892
  media: z.ZodObject<{
1892
1893
  url: z.ZodURL;
1893
1894
  }, z.core.$strip>;
@@ -1895,16 +1896,19 @@ declare const thumbnailPredicate: z.ZodObject<{
1895
1896
  spoiler: z.ZodOptional<z.ZodBoolean>;
1896
1897
  }, z.core.$strip>;
1897
1898
  declare const filePredicate: z.ZodObject<{
1899
+ type: z.ZodLiteral<ComponentType.File>;
1898
1900
  file: z.ZodObject<{
1899
1901
  url: z.ZodURL;
1900
1902
  }, z.core.$strip>;
1901
1903
  spoiler: z.ZodOptional<z.ZodBoolean>;
1902
1904
  }, z.core.$strip>;
1903
1905
  declare const separatorPredicate: z.ZodObject<{
1906
+ type: z.ZodLiteral<ComponentType.Separator>;
1904
1907
  divider: z.ZodOptional<z.ZodBoolean>;
1905
1908
  spacing: z.ZodOptional<z.ZodEnum<typeof SeparatorSpacingSize>>;
1906
1909
  }, z.core.$strip>;
1907
1910
  declare const textDisplayPredicate: z.ZodObject<{
1911
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
1908
1912
  content: z.ZodString;
1909
1913
  }, z.core.$strip>;
1910
1914
  declare const mediaGalleryItemPredicate: z.ZodObject<{
@@ -1915,6 +1919,7 @@ declare const mediaGalleryItemPredicate: z.ZodObject<{
1915
1919
  spoiler: z.ZodOptional<z.ZodBoolean>;
1916
1920
  }, z.core.$strip>;
1917
1921
  declare const mediaGalleryPredicate: z.ZodObject<{
1922
+ type: z.ZodLiteral<ComponentType.MediaGallery>;
1918
1923
  items: z.ZodArray<z.ZodObject<{
1919
1924
  media: z.ZodObject<{
1920
1925
  url: z.ZodURL;
@@ -1924,7 +1929,9 @@ declare const mediaGalleryPredicate: z.ZodObject<{
1924
1929
  }, z.core.$strip>>;
1925
1930
  }, z.core.$strip>;
1926
1931
  declare const sectionPredicate: z.ZodObject<{
1932
+ type: z.ZodLiteral<ComponentType.Section>;
1927
1933
  components: z.ZodArray<z.ZodObject<{
1934
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
1928
1935
  content: z.ZodString;
1929
1936
  }, z.core.$strip>>;
1930
1937
  accessory: z.ZodUnion<readonly [z.ZodObject<{
@@ -1934,6 +1941,7 @@ declare const sectionPredicate: z.ZodObject<{
1934
1941
  }, z.core.$strip>]>;
1935
1942
  }, z.core.$strip>;
1936
1943
  declare const containerPredicate: z.ZodObject<{
1944
+ type: z.ZodLiteral<ComponentType.Container>;
1937
1945
  components: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1938
1946
  type: z.ZodLiteral<ComponentType.ActionRow>;
1939
1947
  components: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
@@ -1942,11 +1950,13 @@ declare const containerPredicate: z.ZodObject<{
1942
1950
  type: z.ZodLiteral<ComponentType.StringSelect | ComponentType.TextInput | ComponentType.UserSelect | ComponentType.RoleSelect | ComponentType.MentionableSelect | ComponentType.ChannelSelect>;
1943
1951
  }, z.core.$strip>>]>;
1944
1952
  }, z.core.$strip>, z.ZodObject<{
1953
+ type: z.ZodLiteral<ComponentType.File>;
1945
1954
  file: z.ZodObject<{
1946
1955
  url: z.ZodURL;
1947
1956
  }, z.core.$strip>;
1948
1957
  spoiler: z.ZodOptional<z.ZodBoolean>;
1949
1958
  }, z.core.$strip>, z.ZodObject<{
1959
+ type: z.ZodLiteral<ComponentType.MediaGallery>;
1950
1960
  items: z.ZodArray<z.ZodObject<{
1951
1961
  media: z.ZodObject<{
1952
1962
  url: z.ZodURL;
@@ -1955,7 +1965,9 @@ declare const containerPredicate: z.ZodObject<{
1955
1965
  spoiler: z.ZodOptional<z.ZodBoolean>;
1956
1966
  }, z.core.$strip>>;
1957
1967
  }, z.core.$strip>, z.ZodObject<{
1968
+ type: z.ZodLiteral<ComponentType.Section>;
1958
1969
  components: z.ZodArray<z.ZodObject<{
1970
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
1959
1971
  content: z.ZodString;
1960
1972
  }, z.core.$strip>>;
1961
1973
  accessory: z.ZodUnion<readonly [z.ZodObject<{
@@ -1964,9 +1976,11 @@ declare const containerPredicate: z.ZodObject<{
1964
1976
  type: z.ZodLiteral<ComponentType.Thumbnail>;
1965
1977
  }, z.core.$strip>]>;
1966
1978
  }, z.core.$strip>, z.ZodObject<{
1979
+ type: z.ZodLiteral<ComponentType.Separator>;
1967
1980
  divider: z.ZodOptional<z.ZodBoolean>;
1968
1981
  spacing: z.ZodOptional<z.ZodEnum<typeof SeparatorSpacingSize>>;
1969
1982
  }, z.core.$strip>, z.ZodObject<{
1983
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
1970
1984
  content: z.ZodString;
1971
1985
  }, z.core.$strip>]>>;
1972
1986
  spoiler: z.ZodOptional<z.ZodBoolean>;
@@ -2944,6 +2958,7 @@ declare const modalPredicate: z.ZodObject<{
2944
2958
  }, z.core.$strip>>>;
2945
2959
  }, z.core.$strip>]>;
2946
2960
  }, z.core.$strip>, z.ZodObject<{
2961
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
2947
2962
  content: z.ZodString;
2948
2963
  }, z.core.$strip>]>>;
2949
2964
  }, z.core.$strip>;
package/dist/index.d.ts CHANGED
@@ -1888,6 +1888,7 @@ declare const actionRowPredicate: z.ZodObject<{
1888
1888
  }, z.core.$strip>;
1889
1889
 
1890
1890
  declare const thumbnailPredicate: z.ZodObject<{
1891
+ type: z.ZodLiteral<ComponentType.Thumbnail>;
1891
1892
  media: z.ZodObject<{
1892
1893
  url: z.ZodURL;
1893
1894
  }, z.core.$strip>;
@@ -1895,16 +1896,19 @@ declare const thumbnailPredicate: z.ZodObject<{
1895
1896
  spoiler: z.ZodOptional<z.ZodBoolean>;
1896
1897
  }, z.core.$strip>;
1897
1898
  declare const filePredicate: z.ZodObject<{
1899
+ type: z.ZodLiteral<ComponentType.File>;
1898
1900
  file: z.ZodObject<{
1899
1901
  url: z.ZodURL;
1900
1902
  }, z.core.$strip>;
1901
1903
  spoiler: z.ZodOptional<z.ZodBoolean>;
1902
1904
  }, z.core.$strip>;
1903
1905
  declare const separatorPredicate: z.ZodObject<{
1906
+ type: z.ZodLiteral<ComponentType.Separator>;
1904
1907
  divider: z.ZodOptional<z.ZodBoolean>;
1905
1908
  spacing: z.ZodOptional<z.ZodEnum<typeof SeparatorSpacingSize>>;
1906
1909
  }, z.core.$strip>;
1907
1910
  declare const textDisplayPredicate: z.ZodObject<{
1911
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
1908
1912
  content: z.ZodString;
1909
1913
  }, z.core.$strip>;
1910
1914
  declare const mediaGalleryItemPredicate: z.ZodObject<{
@@ -1915,6 +1919,7 @@ declare const mediaGalleryItemPredicate: z.ZodObject<{
1915
1919
  spoiler: z.ZodOptional<z.ZodBoolean>;
1916
1920
  }, z.core.$strip>;
1917
1921
  declare const mediaGalleryPredicate: z.ZodObject<{
1922
+ type: z.ZodLiteral<ComponentType.MediaGallery>;
1918
1923
  items: z.ZodArray<z.ZodObject<{
1919
1924
  media: z.ZodObject<{
1920
1925
  url: z.ZodURL;
@@ -1924,7 +1929,9 @@ declare const mediaGalleryPredicate: z.ZodObject<{
1924
1929
  }, z.core.$strip>>;
1925
1930
  }, z.core.$strip>;
1926
1931
  declare const sectionPredicate: z.ZodObject<{
1932
+ type: z.ZodLiteral<ComponentType.Section>;
1927
1933
  components: z.ZodArray<z.ZodObject<{
1934
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
1928
1935
  content: z.ZodString;
1929
1936
  }, z.core.$strip>>;
1930
1937
  accessory: z.ZodUnion<readonly [z.ZodObject<{
@@ -1934,6 +1941,7 @@ declare const sectionPredicate: z.ZodObject<{
1934
1941
  }, z.core.$strip>]>;
1935
1942
  }, z.core.$strip>;
1936
1943
  declare const containerPredicate: z.ZodObject<{
1944
+ type: z.ZodLiteral<ComponentType.Container>;
1937
1945
  components: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1938
1946
  type: z.ZodLiteral<ComponentType.ActionRow>;
1939
1947
  components: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
@@ -1942,11 +1950,13 @@ declare const containerPredicate: z.ZodObject<{
1942
1950
  type: z.ZodLiteral<ComponentType.StringSelect | ComponentType.TextInput | ComponentType.UserSelect | ComponentType.RoleSelect | ComponentType.MentionableSelect | ComponentType.ChannelSelect>;
1943
1951
  }, z.core.$strip>>]>;
1944
1952
  }, z.core.$strip>, z.ZodObject<{
1953
+ type: z.ZodLiteral<ComponentType.File>;
1945
1954
  file: z.ZodObject<{
1946
1955
  url: z.ZodURL;
1947
1956
  }, z.core.$strip>;
1948
1957
  spoiler: z.ZodOptional<z.ZodBoolean>;
1949
1958
  }, z.core.$strip>, z.ZodObject<{
1959
+ type: z.ZodLiteral<ComponentType.MediaGallery>;
1950
1960
  items: z.ZodArray<z.ZodObject<{
1951
1961
  media: z.ZodObject<{
1952
1962
  url: z.ZodURL;
@@ -1955,7 +1965,9 @@ declare const containerPredicate: z.ZodObject<{
1955
1965
  spoiler: z.ZodOptional<z.ZodBoolean>;
1956
1966
  }, z.core.$strip>>;
1957
1967
  }, z.core.$strip>, z.ZodObject<{
1968
+ type: z.ZodLiteral<ComponentType.Section>;
1958
1969
  components: z.ZodArray<z.ZodObject<{
1970
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
1959
1971
  content: z.ZodString;
1960
1972
  }, z.core.$strip>>;
1961
1973
  accessory: z.ZodUnion<readonly [z.ZodObject<{
@@ -1964,9 +1976,11 @@ declare const containerPredicate: z.ZodObject<{
1964
1976
  type: z.ZodLiteral<ComponentType.Thumbnail>;
1965
1977
  }, z.core.$strip>]>;
1966
1978
  }, z.core.$strip>, z.ZodObject<{
1979
+ type: z.ZodLiteral<ComponentType.Separator>;
1967
1980
  divider: z.ZodOptional<z.ZodBoolean>;
1968
1981
  spacing: z.ZodOptional<z.ZodEnum<typeof SeparatorSpacingSize>>;
1969
1982
  }, z.core.$strip>, z.ZodObject<{
1983
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
1970
1984
  content: z.ZodString;
1971
1985
  }, z.core.$strip>]>>;
1972
1986
  spoiler: z.ZodOptional<z.ZodBoolean>;
@@ -2944,6 +2958,7 @@ declare const modalPredicate: z.ZodObject<{
2944
2958
  }, z.core.$strip>>>;
2945
2959
  }, z.core.$strip>]>;
2946
2960
  }, z.core.$strip>, z.ZodObject<{
2961
+ type: z.ZodLiteral<ComponentType.TextDisplay>;
2947
2962
  content: z.ZodString;
2948
2963
  }, z.core.$strip>]>>;
2949
2964
  }, z.core.$strip>;
package/dist/index.js CHANGED
@@ -1567,6 +1567,7 @@ var unfurledMediaItemPredicate = import_zod5.z.object({
1567
1567
  url: import_zod5.z.url({ protocol: /^(?:https?|attachment)$/ })
1568
1568
  });
1569
1569
  var thumbnailPredicate = import_zod5.z.object({
1570
+ type: import_zod5.z.literal(import_v1014.ComponentType.Thumbnail),
1570
1571
  media: unfurledMediaItemPredicate,
1571
1572
  description: import_zod5.z.string().min(1).max(1024).nullish(),
1572
1573
  spoiler: import_zod5.z.boolean().optional()
@@ -1575,14 +1576,17 @@ var unfurledMediaItemAttachmentOnlyPredicate = import_zod5.z.object({
1575
1576
  url: import_zod5.z.url({ protocol: /^attachment$/ })
1576
1577
  });
1577
1578
  var filePredicate = import_zod5.z.object({
1579
+ type: import_zod5.z.literal(import_v1014.ComponentType.File),
1578
1580
  file: unfurledMediaItemAttachmentOnlyPredicate,
1579
1581
  spoiler: import_zod5.z.boolean().optional()
1580
1582
  });
1581
1583
  var separatorPredicate = import_zod5.z.object({
1584
+ type: import_zod5.z.literal(import_v1014.ComponentType.Separator),
1582
1585
  divider: import_zod5.z.boolean().optional(),
1583
1586
  spacing: import_zod5.z.enum(import_v1014.SeparatorSpacingSize).optional()
1584
1587
  });
1585
1588
  var textDisplayPredicate = import_zod5.z.object({
1589
+ type: import_zod5.z.literal(import_v1014.ComponentType.TextDisplay),
1586
1590
  content: import_zod5.z.string().min(1).max(4e3)
1587
1591
  });
1588
1592
  var mediaGalleryItemPredicate = import_zod5.z.object({
@@ -1591,9 +1595,11 @@ var mediaGalleryItemPredicate = import_zod5.z.object({
1591
1595
  spoiler: import_zod5.z.boolean().optional()
1592
1596
  });
1593
1597
  var mediaGalleryPredicate = import_zod5.z.object({
1598
+ type: import_zod5.z.literal(import_v1014.ComponentType.MediaGallery),
1594
1599
  items: import_zod5.z.array(mediaGalleryItemPredicate).min(1).max(10)
1595
1600
  });
1596
1601
  var sectionPredicate = import_zod5.z.object({
1602
+ type: import_zod5.z.literal(import_v1014.ComponentType.Section),
1597
1603
  components: import_zod5.z.array(textDisplayPredicate).min(1).max(3),
1598
1604
  accessory: import_zod5.z.union([
1599
1605
  import_zod5.z.object({ type: import_zod5.z.literal(import_v1014.ComponentType.Button) }),
@@ -1601,6 +1607,7 @@ var sectionPredicate = import_zod5.z.object({
1601
1607
  ])
1602
1608
  });
1603
1609
  var containerPredicate = import_zod5.z.object({
1610
+ type: import_zod5.z.literal(import_v1014.ComponentType.Container),
1604
1611
  components: import_zod5.z.array(
1605
1612
  import_zod5.z.union([
1606
1613
  actionRowPredicate,
@@ -5596,7 +5603,7 @@ var MessageBuilder = class {
5596
5603
  };
5597
5604
 
5598
5605
  // src/index.ts
5599
- var version = "2.0.0-dev.1757851336-b66f52f9a";
5606
+ var version = "2.0.0-dev.1758542541-beed098bf";
5600
5607
  // Annotate the CommonJS export names for ESM import in node:
5601
5608
  0 && (module.exports = {
5602
5609
  ActionRowBuilder,