@discordjs/builders 2.0.0-dev.1758877923-b3705df54 → 2.0.0-dev.1758931308-9201243f3
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 +42 -1
- package/dist/index.d.ts +42 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -801,10 +801,12 @@ declare class LabelBuilder extends ComponentBuilder<APILabelComponent> {
|
|
|
801
801
|
}
|
|
802
802
|
|
|
803
803
|
declare const labelPredicate: z.ZodObject<{
|
|
804
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
804
805
|
type: z.ZodLiteral<ComponentType.Label>;
|
|
805
806
|
label: z.ZodString;
|
|
806
807
|
description: z.ZodOptional<z.ZodString>;
|
|
807
808
|
component: z.ZodUnion<readonly [z.ZodObject<{
|
|
809
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
808
810
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
809
811
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
810
812
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -823,6 +825,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
823
825
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
824
826
|
}, z.core.$strip>>;
|
|
825
827
|
}, z.core.$strip>, z.ZodObject<{
|
|
828
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
826
829
|
type: z.ZodLiteral<ComponentType.TextInput>;
|
|
827
830
|
custom_id: z.ZodString;
|
|
828
831
|
style: z.ZodEnum<typeof discord_api_types_v10.TextInputStyle>;
|
|
@@ -832,6 +835,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
832
835
|
value: z.ZodOptional<z.ZodString>;
|
|
833
836
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
834
837
|
}, z.core.$strip>, z.ZodObject<{
|
|
838
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
835
839
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
836
840
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
837
841
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -843,6 +847,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
843
847
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.User>;
|
|
844
848
|
}, z.core.$strip>>>;
|
|
845
849
|
}, z.core.$strip>, z.ZodObject<{
|
|
850
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
846
851
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
847
852
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
848
853
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -854,6 +859,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
854
859
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.Role>;
|
|
855
860
|
}, z.core.$strip>>>;
|
|
856
861
|
}, z.core.$strip>, z.ZodObject<{
|
|
862
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
857
863
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
858
864
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
859
865
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -865,6 +871,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
865
871
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.Role | discord_api_types_v10.SelectMenuDefaultValueType.User>;
|
|
866
872
|
}, z.core.$strip>>>;
|
|
867
873
|
}, z.core.$strip>, z.ZodObject<{
|
|
874
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
868
875
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
869
876
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
870
877
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -880,6 +887,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
880
887
|
}, z.core.$strip>;
|
|
881
888
|
|
|
882
889
|
declare const textInputPredicate: z.ZodObject<{
|
|
890
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
883
891
|
type: z.ZodLiteral<ComponentType.TextInput>;
|
|
884
892
|
custom_id: z.ZodString;
|
|
885
893
|
style: z.ZodEnum<typeof TextInputStyle>;
|
|
@@ -1800,6 +1808,7 @@ declare const buttonPredicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1800
1808
|
sku_id: z.ZodString;
|
|
1801
1809
|
}, z.core.$strict>], "style">;
|
|
1802
1810
|
declare const selectMenuChannelPredicate: z.ZodObject<{
|
|
1811
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1803
1812
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1804
1813
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1805
1814
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1813,6 +1822,7 @@ declare const selectMenuChannelPredicate: z.ZodObject<{
|
|
|
1813
1822
|
}, z.core.$strip>>>;
|
|
1814
1823
|
}, z.core.$strip>;
|
|
1815
1824
|
declare const selectMenuMentionablePredicate: z.ZodObject<{
|
|
1825
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1816
1826
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1817
1827
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1818
1828
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1825,6 +1835,7 @@ declare const selectMenuMentionablePredicate: z.ZodObject<{
|
|
|
1825
1835
|
}, z.core.$strip>>>;
|
|
1826
1836
|
}, z.core.$strip>;
|
|
1827
1837
|
declare const selectMenuRolePredicate: z.ZodObject<{
|
|
1838
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1828
1839
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1829
1840
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1830
1841
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1848,6 +1859,7 @@ declare const selectMenuStringOptionPredicate: z.ZodObject<{
|
|
|
1848
1859
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
1849
1860
|
}, z.core.$strip>;
|
|
1850
1861
|
declare const selectMenuStringPredicate: z.ZodObject<{
|
|
1862
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1851
1863
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1852
1864
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1853
1865
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1867,6 +1879,7 @@ declare const selectMenuStringPredicate: z.ZodObject<{
|
|
|
1867
1879
|
}, z.core.$strip>>;
|
|
1868
1880
|
}, z.core.$strip>;
|
|
1869
1881
|
declare const selectMenuUserPredicate: z.ZodObject<{
|
|
1882
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1870
1883
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1871
1884
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1872
1885
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1879,6 +1892,7 @@ declare const selectMenuUserPredicate: z.ZodObject<{
|
|
|
1879
1892
|
}, z.core.$strip>>>;
|
|
1880
1893
|
}, z.core.$strip>;
|
|
1881
1894
|
declare const actionRowPredicate: z.ZodObject<{
|
|
1895
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1882
1896
|
type: z.ZodLiteral<ComponentType.ActionRow>;
|
|
1883
1897
|
components: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
1884
1898
|
type: z.ZodLiteral<ComponentType.Button>;
|
|
@@ -1889,6 +1903,7 @@ declare const actionRowPredicate: z.ZodObject<{
|
|
|
1889
1903
|
|
|
1890
1904
|
declare const thumbnailPredicate: z.ZodObject<{
|
|
1891
1905
|
type: z.ZodLiteral<ComponentType.Thumbnail>;
|
|
1906
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1892
1907
|
media: z.ZodObject<{
|
|
1893
1908
|
url: z.ZodURL;
|
|
1894
1909
|
}, z.core.$strip>;
|
|
@@ -1897,6 +1912,7 @@ declare const thumbnailPredicate: z.ZodObject<{
|
|
|
1897
1912
|
}, z.core.$strip>;
|
|
1898
1913
|
declare const filePredicate: z.ZodObject<{
|
|
1899
1914
|
type: z.ZodLiteral<ComponentType.File>;
|
|
1915
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1900
1916
|
file: z.ZodObject<{
|
|
1901
1917
|
url: z.ZodURL;
|
|
1902
1918
|
}, z.core.$strip>;
|
|
@@ -1904,14 +1920,17 @@ declare const filePredicate: z.ZodObject<{
|
|
|
1904
1920
|
}, z.core.$strip>;
|
|
1905
1921
|
declare const separatorPredicate: z.ZodObject<{
|
|
1906
1922
|
type: z.ZodLiteral<ComponentType.Separator>;
|
|
1923
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1907
1924
|
divider: z.ZodOptional<z.ZodBoolean>;
|
|
1908
1925
|
spacing: z.ZodOptional<z.ZodEnum<typeof SeparatorSpacingSize>>;
|
|
1909
1926
|
}, z.core.$strip>;
|
|
1910
1927
|
declare const textDisplayPredicate: z.ZodObject<{
|
|
1911
1928
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
1929
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1912
1930
|
content: z.ZodString;
|
|
1913
1931
|
}, z.core.$strip>;
|
|
1914
1932
|
declare const mediaGalleryItemPredicate: z.ZodObject<{
|
|
1933
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1915
1934
|
media: z.ZodObject<{
|
|
1916
1935
|
url: z.ZodURL;
|
|
1917
1936
|
}, z.core.$strip>;
|
|
@@ -1920,7 +1939,9 @@ declare const mediaGalleryItemPredicate: z.ZodObject<{
|
|
|
1920
1939
|
}, z.core.$strip>;
|
|
1921
1940
|
declare const mediaGalleryPredicate: z.ZodObject<{
|
|
1922
1941
|
type: z.ZodLiteral<ComponentType.MediaGallery>;
|
|
1942
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1923
1943
|
items: z.ZodArray<z.ZodObject<{
|
|
1944
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1924
1945
|
media: z.ZodObject<{
|
|
1925
1946
|
url: z.ZodURL;
|
|
1926
1947
|
}, z.core.$strip>;
|
|
@@ -1930,8 +1951,10 @@ declare const mediaGalleryPredicate: z.ZodObject<{
|
|
|
1930
1951
|
}, z.core.$strip>;
|
|
1931
1952
|
declare const sectionPredicate: z.ZodObject<{
|
|
1932
1953
|
type: z.ZodLiteral<ComponentType.Section>;
|
|
1954
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1933
1955
|
components: z.ZodArray<z.ZodObject<{
|
|
1934
1956
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
1957
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1935
1958
|
content: z.ZodString;
|
|
1936
1959
|
}, z.core.$strip>>;
|
|
1937
1960
|
accessory: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1942,7 +1965,9 @@ declare const sectionPredicate: z.ZodObject<{
|
|
|
1942
1965
|
}, z.core.$strip>;
|
|
1943
1966
|
declare const containerPredicate: z.ZodObject<{
|
|
1944
1967
|
type: z.ZodLiteral<ComponentType.Container>;
|
|
1968
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1945
1969
|
components: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1970
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1946
1971
|
type: z.ZodLiteral<ComponentType.ActionRow>;
|
|
1947
1972
|
components: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
1948
1973
|
type: z.ZodLiteral<ComponentType.Button>;
|
|
@@ -1951,13 +1976,16 @@ declare const containerPredicate: z.ZodObject<{
|
|
|
1951
1976
|
}, z.core.$strip>>]>;
|
|
1952
1977
|
}, z.core.$strip>, z.ZodObject<{
|
|
1953
1978
|
type: z.ZodLiteral<ComponentType.File>;
|
|
1979
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1954
1980
|
file: z.ZodObject<{
|
|
1955
1981
|
url: z.ZodURL;
|
|
1956
1982
|
}, z.core.$strip>;
|
|
1957
1983
|
spoiler: z.ZodOptional<z.ZodBoolean>;
|
|
1958
1984
|
}, z.core.$strip>, z.ZodObject<{
|
|
1959
1985
|
type: z.ZodLiteral<ComponentType.MediaGallery>;
|
|
1986
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1960
1987
|
items: z.ZodArray<z.ZodObject<{
|
|
1988
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1961
1989
|
media: z.ZodObject<{
|
|
1962
1990
|
url: z.ZodURL;
|
|
1963
1991
|
}, z.core.$strip>;
|
|
@@ -1966,8 +1994,10 @@ declare const containerPredicate: z.ZodObject<{
|
|
|
1966
1994
|
}, z.core.$strip>>;
|
|
1967
1995
|
}, z.core.$strip>, z.ZodObject<{
|
|
1968
1996
|
type: z.ZodLiteral<ComponentType.Section>;
|
|
1997
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1969
1998
|
components: z.ZodArray<z.ZodObject<{
|
|
1970
1999
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
2000
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1971
2001
|
content: z.ZodString;
|
|
1972
2002
|
}, z.core.$strip>>;
|
|
1973
2003
|
accessory: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1977,10 +2007,12 @@ declare const containerPredicate: z.ZodObject<{
|
|
|
1977
2007
|
}, z.core.$strip>]>;
|
|
1978
2008
|
}, z.core.$strip>, z.ZodObject<{
|
|
1979
2009
|
type: z.ZodLiteral<ComponentType.Separator>;
|
|
2010
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1980
2011
|
divider: z.ZodOptional<z.ZodBoolean>;
|
|
1981
2012
|
spacing: z.ZodOptional<z.ZodEnum<typeof SeparatorSpacingSize>>;
|
|
1982
2013
|
}, z.core.$strip>, z.ZodObject<{
|
|
1983
2014
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
2015
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1984
2016
|
content: z.ZodString;
|
|
1985
2017
|
}, z.core.$strip>]>>;
|
|
1986
2018
|
spoiler: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2881,10 +2913,12 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2881
2913
|
type: z.ZodLiteral<ComponentType.TextInput>;
|
|
2882
2914
|
}, z.core.$strip>>;
|
|
2883
2915
|
}, z.core.$strip>, z.ZodObject<{
|
|
2916
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2884
2917
|
type: z.ZodLiteral<ComponentType.Label>;
|
|
2885
2918
|
label: z.ZodString;
|
|
2886
2919
|
description: z.ZodOptional<z.ZodString>;
|
|
2887
2920
|
component: z.ZodUnion<readonly [z.ZodObject<{
|
|
2921
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2888
2922
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2889
2923
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2890
2924
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2903,6 +2937,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2903
2937
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
2904
2938
|
}, z.core.$strip>>;
|
|
2905
2939
|
}, z.core.$strip>, z.ZodObject<{
|
|
2940
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2906
2941
|
type: z.ZodLiteral<ComponentType.TextInput>;
|
|
2907
2942
|
custom_id: z.ZodString;
|
|
2908
2943
|
style: z.ZodEnum<typeof discord_api_types_v10.TextInputStyle>;
|
|
@@ -2912,6 +2947,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2912
2947
|
value: z.ZodOptional<z.ZodString>;
|
|
2913
2948
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2914
2949
|
}, z.core.$strip>, z.ZodObject<{
|
|
2950
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2915
2951
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2916
2952
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2917
2953
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2923,6 +2959,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2923
2959
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.User>;
|
|
2924
2960
|
}, z.core.$strip>>>;
|
|
2925
2961
|
}, z.core.$strip>, z.ZodObject<{
|
|
2962
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2926
2963
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2927
2964
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2928
2965
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2934,6 +2971,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2934
2971
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.Role>;
|
|
2935
2972
|
}, z.core.$strip>>>;
|
|
2936
2973
|
}, z.core.$strip>, z.ZodObject<{
|
|
2974
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2937
2975
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2938
2976
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2939
2977
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2945,6 +2983,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2945
2983
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.Role | discord_api_types_v10.SelectMenuDefaultValueType.User>;
|
|
2946
2984
|
}, z.core.$strip>>>;
|
|
2947
2985
|
}, z.core.$strip>, z.ZodObject<{
|
|
2986
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2948
2987
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2949
2988
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2950
2989
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2959,6 +2998,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2959
2998
|
}, z.core.$strip>]>;
|
|
2960
2999
|
}, z.core.$strip>, z.ZodObject<{
|
|
2961
3000
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
3001
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2962
3002
|
content: z.ZodString;
|
|
2963
3003
|
}, z.core.$strip>]>>;
|
|
2964
3004
|
}, z.core.$strip>;
|
|
@@ -4522,6 +4562,7 @@ declare class ValidationError extends Error {
|
|
|
4522
4562
|
constructor(error: z.ZodError);
|
|
4523
4563
|
}
|
|
4524
4564
|
|
|
4565
|
+
declare const idPredicate: z.ZodOptional<z.ZodInt>;
|
|
4525
4566
|
declare const customIdPredicate: z.ZodString;
|
|
4526
4567
|
declare const memberPermissionsPredicate: z.ZodCoercedBigInt<unknown>;
|
|
4527
4568
|
declare const localeMapPredicate: z.ZodObject<Record<Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>;
|
|
@@ -4534,4 +4575,4 @@ declare const localeMapPredicate: z.ZodObject<Record<Locale, z.ZodOptional<z.Zod
|
|
|
4534
4575
|
*/
|
|
4535
4576
|
declare const version: string;
|
|
4536
4577
|
|
|
4537
|
-
export { ActionRowBuilder, type ActionRowBuilderData, AllowedMentionsBuilder, type AnyActionRowComponentBuilder, type AnyModalComponentBuilder, type ApplicationCommandNumericOptionMinMaxValueData, ApplicationCommandNumericOptionMinMaxValueMixin, type ApplicationCommandOptionAllowedChannelType, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, type ApplicationCommandOptionBaseData, type ApplicationCommandOptionChannelTypesData, ApplicationCommandOptionChannelTypesMixin, type ApplicationCommandOptionWithAutocompleteData, ApplicationCommandOptionWithAutocompleteMixin, type ApplicationCommandOptionWithChoicesData, ApplicationCommandOptionWithChoicesMixin, AttachmentBuilder, type AutocompletableOptions, BaseButtonBuilder, BaseSelectMenuBuilder, type ButtonBuilder, ChannelSelectMenuBuilder, ChatInputCommandAttachmentOption, ChatInputCommandBooleanOption, ChatInputCommandBuilder, ChatInputCommandChannelOption, ChatInputCommandIntegerOption, ChatInputCommandMentionableOption, ChatInputCommandNumberOption, ChatInputCommandRoleOption, ChatInputCommandStringOption, ChatInputCommandSubcommandBuilder, ChatInputCommandSubcommandGroupBuilder, type ChatInputCommandSubcommandGroupData, ChatInputCommandUserOption, CommandBuilder, type CommandData, ComponentBuilder, type ComponentBuilderBaseData, ContainerBuilder, type ContainerBuilderData, type ContainerComponentBuilders, ContextMenuCommandBuilder, type ContextMenuCommandType, CustomIdButtonBuilder, type CustomIdButtonStyle, DangerButtonBuilder, EmbedAuthorBuilder, EmbedBuilder, type EmbedBuilderData, EmbedFieldBuilder, EmbedFooterBuilder, type EmojiOrLabelButtonData, EmojiOrLabelButtonMixin, FileBuilder, LabelBuilder, type LabelBuilderData, LinkButtonBuilder, type MappedComponentTypes, MediaGalleryBuilder, type MediaGalleryBuilderData, MediaGalleryItemBuilder, MentionableSelectMenuBuilder, type MessageActionRowComponentBuilder, MessageBuilder, type MessageBuilderData, type MessageComponentBuilder, MessageContextCommandBuilder, MessageReferenceBuilder, type MessageTopLevelComponentBuilder, type ModalActionRowComponentBuilder, ModalBuilder, type ModalBuilderData, type ModalComponentBuilder, PollAnswerBuilder, type PollAnswerData, PollAnswerMediaBuilder, PollBuilder, type PollData, PollMediaBuilder, PollQuestionBuilder, PremiumButtonBuilder, PrimaryButtonBuilder, type RestOrArray, RoleSelectMenuBuilder, SecondaryButtonBuilder, SectionBuilder, type SectionBuilderAccessory, type SectionBuilderData, SeparatorBuilder, SharedChatInputCommandOptions, type SharedChatInputCommandOptionsData, SharedChatInputCommandSubcommands, type SharedChatInputCommandSubcommandsData, SharedName, SharedNameAndDescription, type SharedNameAndDescriptionData, type SharedNameData, StringSelectMenuBuilder, type StringSelectMenuData, StringSelectMenuOptionBuilder, SuccessButtonBuilder, TextDisplayBuilder, TextInputBuilder, ThumbnailBuilder, UserContextCommandBuilder, UserSelectMenuBuilder, ValidationError, actionRowPredicate, allowedMentionPredicate, attachmentPredicate, basicOptionPredicate, buttonPredicate, channelOptionPredicate, chatInputCommandPredicate, chatInputCommandSubcommandGroupPredicate, chatInputCommandSubcommandPredicate, containerPredicate, createComponentBuilder, customIdPredicate, disableValidators, embedAuthorPredicate, embedFieldPredicate, embedFooterPredicate, embedLength, embedPredicate, emojiPredicate, enableValidators, filePredicate, integerOptionPredicate, isValidationEnabled, labelPredicate, localeMapPredicate, mediaGalleryItemPredicate, mediaGalleryPredicate, memberPermissionsPredicate, messageCommandPredicate, messagePredicate, messageReferencePredicate, modalPredicate, normalizeArray, numberOptionPredicate, pollAnswerMediaPredicate, pollAnswerPredicate, pollPredicate, pollQuestionPredicate, resolveAccessoryComponent, resolveBuilder, sectionPredicate, selectMenuChannelPredicate, selectMenuMentionablePredicate, selectMenuRolePredicate, selectMenuStringOptionPredicate, selectMenuStringPredicate, selectMenuUserPredicate, separatorPredicate, stringOptionPredicate, textDisplayPredicate, textInputPredicate, thumbnailPredicate, userCommandPredicate, version };
|
|
4578
|
+
export { ActionRowBuilder, type ActionRowBuilderData, AllowedMentionsBuilder, type AnyActionRowComponentBuilder, type AnyModalComponentBuilder, type ApplicationCommandNumericOptionMinMaxValueData, ApplicationCommandNumericOptionMinMaxValueMixin, type ApplicationCommandOptionAllowedChannelType, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, type ApplicationCommandOptionBaseData, type ApplicationCommandOptionChannelTypesData, ApplicationCommandOptionChannelTypesMixin, type ApplicationCommandOptionWithAutocompleteData, ApplicationCommandOptionWithAutocompleteMixin, type ApplicationCommandOptionWithChoicesData, ApplicationCommandOptionWithChoicesMixin, AttachmentBuilder, type AutocompletableOptions, BaseButtonBuilder, BaseSelectMenuBuilder, type ButtonBuilder, ChannelSelectMenuBuilder, ChatInputCommandAttachmentOption, ChatInputCommandBooleanOption, ChatInputCommandBuilder, ChatInputCommandChannelOption, ChatInputCommandIntegerOption, ChatInputCommandMentionableOption, ChatInputCommandNumberOption, ChatInputCommandRoleOption, ChatInputCommandStringOption, ChatInputCommandSubcommandBuilder, ChatInputCommandSubcommandGroupBuilder, type ChatInputCommandSubcommandGroupData, ChatInputCommandUserOption, CommandBuilder, type CommandData, ComponentBuilder, type ComponentBuilderBaseData, ContainerBuilder, type ContainerBuilderData, type ContainerComponentBuilders, ContextMenuCommandBuilder, type ContextMenuCommandType, CustomIdButtonBuilder, type CustomIdButtonStyle, DangerButtonBuilder, EmbedAuthorBuilder, EmbedBuilder, type EmbedBuilderData, EmbedFieldBuilder, EmbedFooterBuilder, type EmojiOrLabelButtonData, EmojiOrLabelButtonMixin, FileBuilder, LabelBuilder, type LabelBuilderData, LinkButtonBuilder, type MappedComponentTypes, MediaGalleryBuilder, type MediaGalleryBuilderData, MediaGalleryItemBuilder, MentionableSelectMenuBuilder, type MessageActionRowComponentBuilder, MessageBuilder, type MessageBuilderData, type MessageComponentBuilder, MessageContextCommandBuilder, MessageReferenceBuilder, type MessageTopLevelComponentBuilder, type ModalActionRowComponentBuilder, ModalBuilder, type ModalBuilderData, type ModalComponentBuilder, PollAnswerBuilder, type PollAnswerData, PollAnswerMediaBuilder, PollBuilder, type PollData, PollMediaBuilder, PollQuestionBuilder, PremiumButtonBuilder, PrimaryButtonBuilder, type RestOrArray, RoleSelectMenuBuilder, SecondaryButtonBuilder, SectionBuilder, type SectionBuilderAccessory, type SectionBuilderData, SeparatorBuilder, SharedChatInputCommandOptions, type SharedChatInputCommandOptionsData, SharedChatInputCommandSubcommands, type SharedChatInputCommandSubcommandsData, SharedName, SharedNameAndDescription, type SharedNameAndDescriptionData, type SharedNameData, StringSelectMenuBuilder, type StringSelectMenuData, StringSelectMenuOptionBuilder, SuccessButtonBuilder, TextDisplayBuilder, TextInputBuilder, ThumbnailBuilder, UserContextCommandBuilder, UserSelectMenuBuilder, ValidationError, actionRowPredicate, allowedMentionPredicate, attachmentPredicate, basicOptionPredicate, buttonPredicate, channelOptionPredicate, chatInputCommandPredicate, chatInputCommandSubcommandGroupPredicate, chatInputCommandSubcommandPredicate, containerPredicate, createComponentBuilder, customIdPredicate, disableValidators, embedAuthorPredicate, embedFieldPredicate, embedFooterPredicate, embedLength, embedPredicate, emojiPredicate, enableValidators, filePredicate, idPredicate, integerOptionPredicate, isValidationEnabled, labelPredicate, localeMapPredicate, mediaGalleryItemPredicate, mediaGalleryPredicate, memberPermissionsPredicate, messageCommandPredicate, messagePredicate, messageReferencePredicate, modalPredicate, normalizeArray, numberOptionPredicate, pollAnswerMediaPredicate, pollAnswerPredicate, pollPredicate, pollQuestionPredicate, resolveAccessoryComponent, resolveBuilder, sectionPredicate, selectMenuChannelPredicate, selectMenuMentionablePredicate, selectMenuRolePredicate, selectMenuStringOptionPredicate, selectMenuStringPredicate, selectMenuUserPredicate, separatorPredicate, stringOptionPredicate, textDisplayPredicate, textInputPredicate, thumbnailPredicate, userCommandPredicate, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -801,10 +801,12 @@ declare class LabelBuilder extends ComponentBuilder<APILabelComponent> {
|
|
|
801
801
|
}
|
|
802
802
|
|
|
803
803
|
declare const labelPredicate: z.ZodObject<{
|
|
804
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
804
805
|
type: z.ZodLiteral<ComponentType.Label>;
|
|
805
806
|
label: z.ZodString;
|
|
806
807
|
description: z.ZodOptional<z.ZodString>;
|
|
807
808
|
component: z.ZodUnion<readonly [z.ZodObject<{
|
|
809
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
808
810
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
809
811
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
810
812
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -823,6 +825,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
823
825
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
824
826
|
}, z.core.$strip>>;
|
|
825
827
|
}, z.core.$strip>, z.ZodObject<{
|
|
828
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
826
829
|
type: z.ZodLiteral<ComponentType.TextInput>;
|
|
827
830
|
custom_id: z.ZodString;
|
|
828
831
|
style: z.ZodEnum<typeof discord_api_types_v10.TextInputStyle>;
|
|
@@ -832,6 +835,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
832
835
|
value: z.ZodOptional<z.ZodString>;
|
|
833
836
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
834
837
|
}, z.core.$strip>, z.ZodObject<{
|
|
838
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
835
839
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
836
840
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
837
841
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -843,6 +847,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
843
847
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.User>;
|
|
844
848
|
}, z.core.$strip>>>;
|
|
845
849
|
}, z.core.$strip>, z.ZodObject<{
|
|
850
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
846
851
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
847
852
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
848
853
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -854,6 +859,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
854
859
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.Role>;
|
|
855
860
|
}, z.core.$strip>>>;
|
|
856
861
|
}, z.core.$strip>, z.ZodObject<{
|
|
862
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
857
863
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
858
864
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
859
865
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -865,6 +871,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
865
871
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.Role | discord_api_types_v10.SelectMenuDefaultValueType.User>;
|
|
866
872
|
}, z.core.$strip>>>;
|
|
867
873
|
}, z.core.$strip>, z.ZodObject<{
|
|
874
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
868
875
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
869
876
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
870
877
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -880,6 +887,7 @@ declare const labelPredicate: z.ZodObject<{
|
|
|
880
887
|
}, z.core.$strip>;
|
|
881
888
|
|
|
882
889
|
declare const textInputPredicate: z.ZodObject<{
|
|
890
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
883
891
|
type: z.ZodLiteral<ComponentType.TextInput>;
|
|
884
892
|
custom_id: z.ZodString;
|
|
885
893
|
style: z.ZodEnum<typeof TextInputStyle>;
|
|
@@ -1800,6 +1808,7 @@ declare const buttonPredicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1800
1808
|
sku_id: z.ZodString;
|
|
1801
1809
|
}, z.core.$strict>], "style">;
|
|
1802
1810
|
declare const selectMenuChannelPredicate: z.ZodObject<{
|
|
1811
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1803
1812
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1804
1813
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1805
1814
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1813,6 +1822,7 @@ declare const selectMenuChannelPredicate: z.ZodObject<{
|
|
|
1813
1822
|
}, z.core.$strip>>>;
|
|
1814
1823
|
}, z.core.$strip>;
|
|
1815
1824
|
declare const selectMenuMentionablePredicate: z.ZodObject<{
|
|
1825
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1816
1826
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1817
1827
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1818
1828
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1825,6 +1835,7 @@ declare const selectMenuMentionablePredicate: z.ZodObject<{
|
|
|
1825
1835
|
}, z.core.$strip>>>;
|
|
1826
1836
|
}, z.core.$strip>;
|
|
1827
1837
|
declare const selectMenuRolePredicate: z.ZodObject<{
|
|
1838
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1828
1839
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1829
1840
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1830
1841
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1848,6 +1859,7 @@ declare const selectMenuStringOptionPredicate: z.ZodObject<{
|
|
|
1848
1859
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
1849
1860
|
}, z.core.$strip>;
|
|
1850
1861
|
declare const selectMenuStringPredicate: z.ZodObject<{
|
|
1862
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1851
1863
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1852
1864
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1853
1865
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1867,6 +1879,7 @@ declare const selectMenuStringPredicate: z.ZodObject<{
|
|
|
1867
1879
|
}, z.core.$strip>>;
|
|
1868
1880
|
}, z.core.$strip>;
|
|
1869
1881
|
declare const selectMenuUserPredicate: z.ZodObject<{
|
|
1882
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1870
1883
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
1871
1884
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
1872
1885
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1879,6 +1892,7 @@ declare const selectMenuUserPredicate: z.ZodObject<{
|
|
|
1879
1892
|
}, z.core.$strip>>>;
|
|
1880
1893
|
}, z.core.$strip>;
|
|
1881
1894
|
declare const actionRowPredicate: z.ZodObject<{
|
|
1895
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1882
1896
|
type: z.ZodLiteral<ComponentType.ActionRow>;
|
|
1883
1897
|
components: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
1884
1898
|
type: z.ZodLiteral<ComponentType.Button>;
|
|
@@ -1889,6 +1903,7 @@ declare const actionRowPredicate: z.ZodObject<{
|
|
|
1889
1903
|
|
|
1890
1904
|
declare const thumbnailPredicate: z.ZodObject<{
|
|
1891
1905
|
type: z.ZodLiteral<ComponentType.Thumbnail>;
|
|
1906
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1892
1907
|
media: z.ZodObject<{
|
|
1893
1908
|
url: z.ZodURL;
|
|
1894
1909
|
}, z.core.$strip>;
|
|
@@ -1897,6 +1912,7 @@ declare const thumbnailPredicate: z.ZodObject<{
|
|
|
1897
1912
|
}, z.core.$strip>;
|
|
1898
1913
|
declare const filePredicate: z.ZodObject<{
|
|
1899
1914
|
type: z.ZodLiteral<ComponentType.File>;
|
|
1915
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1900
1916
|
file: z.ZodObject<{
|
|
1901
1917
|
url: z.ZodURL;
|
|
1902
1918
|
}, z.core.$strip>;
|
|
@@ -1904,14 +1920,17 @@ declare const filePredicate: z.ZodObject<{
|
|
|
1904
1920
|
}, z.core.$strip>;
|
|
1905
1921
|
declare const separatorPredicate: z.ZodObject<{
|
|
1906
1922
|
type: z.ZodLiteral<ComponentType.Separator>;
|
|
1923
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1907
1924
|
divider: z.ZodOptional<z.ZodBoolean>;
|
|
1908
1925
|
spacing: z.ZodOptional<z.ZodEnum<typeof SeparatorSpacingSize>>;
|
|
1909
1926
|
}, z.core.$strip>;
|
|
1910
1927
|
declare const textDisplayPredicate: z.ZodObject<{
|
|
1911
1928
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
1929
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1912
1930
|
content: z.ZodString;
|
|
1913
1931
|
}, z.core.$strip>;
|
|
1914
1932
|
declare const mediaGalleryItemPredicate: z.ZodObject<{
|
|
1933
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1915
1934
|
media: z.ZodObject<{
|
|
1916
1935
|
url: z.ZodURL;
|
|
1917
1936
|
}, z.core.$strip>;
|
|
@@ -1920,7 +1939,9 @@ declare const mediaGalleryItemPredicate: z.ZodObject<{
|
|
|
1920
1939
|
}, z.core.$strip>;
|
|
1921
1940
|
declare const mediaGalleryPredicate: z.ZodObject<{
|
|
1922
1941
|
type: z.ZodLiteral<ComponentType.MediaGallery>;
|
|
1942
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1923
1943
|
items: z.ZodArray<z.ZodObject<{
|
|
1944
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1924
1945
|
media: z.ZodObject<{
|
|
1925
1946
|
url: z.ZodURL;
|
|
1926
1947
|
}, z.core.$strip>;
|
|
@@ -1930,8 +1951,10 @@ declare const mediaGalleryPredicate: z.ZodObject<{
|
|
|
1930
1951
|
}, z.core.$strip>;
|
|
1931
1952
|
declare const sectionPredicate: z.ZodObject<{
|
|
1932
1953
|
type: z.ZodLiteral<ComponentType.Section>;
|
|
1954
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1933
1955
|
components: z.ZodArray<z.ZodObject<{
|
|
1934
1956
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
1957
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1935
1958
|
content: z.ZodString;
|
|
1936
1959
|
}, z.core.$strip>>;
|
|
1937
1960
|
accessory: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1942,7 +1965,9 @@ declare const sectionPredicate: z.ZodObject<{
|
|
|
1942
1965
|
}, z.core.$strip>;
|
|
1943
1966
|
declare const containerPredicate: z.ZodObject<{
|
|
1944
1967
|
type: z.ZodLiteral<ComponentType.Container>;
|
|
1968
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1945
1969
|
components: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1970
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1946
1971
|
type: z.ZodLiteral<ComponentType.ActionRow>;
|
|
1947
1972
|
components: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
1948
1973
|
type: z.ZodLiteral<ComponentType.Button>;
|
|
@@ -1951,13 +1976,16 @@ declare const containerPredicate: z.ZodObject<{
|
|
|
1951
1976
|
}, z.core.$strip>>]>;
|
|
1952
1977
|
}, z.core.$strip>, z.ZodObject<{
|
|
1953
1978
|
type: z.ZodLiteral<ComponentType.File>;
|
|
1979
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1954
1980
|
file: z.ZodObject<{
|
|
1955
1981
|
url: z.ZodURL;
|
|
1956
1982
|
}, z.core.$strip>;
|
|
1957
1983
|
spoiler: z.ZodOptional<z.ZodBoolean>;
|
|
1958
1984
|
}, z.core.$strip>, z.ZodObject<{
|
|
1959
1985
|
type: z.ZodLiteral<ComponentType.MediaGallery>;
|
|
1986
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1960
1987
|
items: z.ZodArray<z.ZodObject<{
|
|
1988
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1961
1989
|
media: z.ZodObject<{
|
|
1962
1990
|
url: z.ZodURL;
|
|
1963
1991
|
}, z.core.$strip>;
|
|
@@ -1966,8 +1994,10 @@ declare const containerPredicate: z.ZodObject<{
|
|
|
1966
1994
|
}, z.core.$strip>>;
|
|
1967
1995
|
}, z.core.$strip>, z.ZodObject<{
|
|
1968
1996
|
type: z.ZodLiteral<ComponentType.Section>;
|
|
1997
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1969
1998
|
components: z.ZodArray<z.ZodObject<{
|
|
1970
1999
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
2000
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1971
2001
|
content: z.ZodString;
|
|
1972
2002
|
}, z.core.$strip>>;
|
|
1973
2003
|
accessory: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1977,10 +2007,12 @@ declare const containerPredicate: z.ZodObject<{
|
|
|
1977
2007
|
}, z.core.$strip>]>;
|
|
1978
2008
|
}, z.core.$strip>, z.ZodObject<{
|
|
1979
2009
|
type: z.ZodLiteral<ComponentType.Separator>;
|
|
2010
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1980
2011
|
divider: z.ZodOptional<z.ZodBoolean>;
|
|
1981
2012
|
spacing: z.ZodOptional<z.ZodEnum<typeof SeparatorSpacingSize>>;
|
|
1982
2013
|
}, z.core.$strip>, z.ZodObject<{
|
|
1983
2014
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
2015
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
1984
2016
|
content: z.ZodString;
|
|
1985
2017
|
}, z.core.$strip>]>>;
|
|
1986
2018
|
spoiler: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2881,10 +2913,12 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2881
2913
|
type: z.ZodLiteral<ComponentType.TextInput>;
|
|
2882
2914
|
}, z.core.$strip>>;
|
|
2883
2915
|
}, z.core.$strip>, z.ZodObject<{
|
|
2916
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2884
2917
|
type: z.ZodLiteral<ComponentType.Label>;
|
|
2885
2918
|
label: z.ZodString;
|
|
2886
2919
|
description: z.ZodOptional<z.ZodString>;
|
|
2887
2920
|
component: z.ZodUnion<readonly [z.ZodObject<{
|
|
2921
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2888
2922
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2889
2923
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2890
2924
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2903,6 +2937,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2903
2937
|
default: z.ZodOptional<z.ZodBoolean>;
|
|
2904
2938
|
}, z.core.$strip>>;
|
|
2905
2939
|
}, z.core.$strip>, z.ZodObject<{
|
|
2940
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2906
2941
|
type: z.ZodLiteral<ComponentType.TextInput>;
|
|
2907
2942
|
custom_id: z.ZodString;
|
|
2908
2943
|
style: z.ZodEnum<typeof discord_api_types_v10.TextInputStyle>;
|
|
@@ -2912,6 +2947,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2912
2947
|
value: z.ZodOptional<z.ZodString>;
|
|
2913
2948
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
2914
2949
|
}, z.core.$strip>, z.ZodObject<{
|
|
2950
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2915
2951
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2916
2952
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2917
2953
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2923,6 +2959,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2923
2959
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.User>;
|
|
2924
2960
|
}, z.core.$strip>>>;
|
|
2925
2961
|
}, z.core.$strip>, z.ZodObject<{
|
|
2962
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2926
2963
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2927
2964
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2928
2965
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2934,6 +2971,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2934
2971
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.Role>;
|
|
2935
2972
|
}, z.core.$strip>>>;
|
|
2936
2973
|
}, z.core.$strip>, z.ZodObject<{
|
|
2974
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2937
2975
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2938
2976
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2939
2977
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2945,6 +2983,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2945
2983
|
type: z.ZodLiteral<discord_api_types_v10.SelectMenuDefaultValueType.Role | discord_api_types_v10.SelectMenuDefaultValueType.User>;
|
|
2946
2984
|
}, z.core.$strip>>>;
|
|
2947
2985
|
}, z.core.$strip>, z.ZodObject<{
|
|
2986
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2948
2987
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
2949
2988
|
min_values: z.ZodOptional<z.ZodNumber>;
|
|
2950
2989
|
max_values: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2959,6 +2998,7 @@ declare const modalPredicate: z.ZodObject<{
|
|
|
2959
2998
|
}, z.core.$strip>]>;
|
|
2960
2999
|
}, z.core.$strip>, z.ZodObject<{
|
|
2961
3000
|
type: z.ZodLiteral<ComponentType.TextDisplay>;
|
|
3001
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2962
3002
|
content: z.ZodString;
|
|
2963
3003
|
}, z.core.$strip>]>>;
|
|
2964
3004
|
}, z.core.$strip>;
|
|
@@ -4522,6 +4562,7 @@ declare class ValidationError extends Error {
|
|
|
4522
4562
|
constructor(error: z.ZodError);
|
|
4523
4563
|
}
|
|
4524
4564
|
|
|
4565
|
+
declare const idPredicate: z.ZodOptional<z.ZodInt>;
|
|
4525
4566
|
declare const customIdPredicate: z.ZodString;
|
|
4526
4567
|
declare const memberPermissionsPredicate: z.ZodCoercedBigInt<unknown>;
|
|
4527
4568
|
declare const localeMapPredicate: z.ZodObject<Record<Locale, z.ZodOptional<z.ZodString>>, z.core.$strict>;
|
|
@@ -4534,4 +4575,4 @@ declare const localeMapPredicate: z.ZodObject<Record<Locale, z.ZodOptional<z.Zod
|
|
|
4534
4575
|
*/
|
|
4535
4576
|
declare const version: string;
|
|
4536
4577
|
|
|
4537
|
-
export { ActionRowBuilder, type ActionRowBuilderData, AllowedMentionsBuilder, type AnyActionRowComponentBuilder, type AnyModalComponentBuilder, type ApplicationCommandNumericOptionMinMaxValueData, ApplicationCommandNumericOptionMinMaxValueMixin, type ApplicationCommandOptionAllowedChannelType, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, type ApplicationCommandOptionBaseData, type ApplicationCommandOptionChannelTypesData, ApplicationCommandOptionChannelTypesMixin, type ApplicationCommandOptionWithAutocompleteData, ApplicationCommandOptionWithAutocompleteMixin, type ApplicationCommandOptionWithChoicesData, ApplicationCommandOptionWithChoicesMixin, AttachmentBuilder, type AutocompletableOptions, BaseButtonBuilder, BaseSelectMenuBuilder, type ButtonBuilder, ChannelSelectMenuBuilder, ChatInputCommandAttachmentOption, ChatInputCommandBooleanOption, ChatInputCommandBuilder, ChatInputCommandChannelOption, ChatInputCommandIntegerOption, ChatInputCommandMentionableOption, ChatInputCommandNumberOption, ChatInputCommandRoleOption, ChatInputCommandStringOption, ChatInputCommandSubcommandBuilder, ChatInputCommandSubcommandGroupBuilder, type ChatInputCommandSubcommandGroupData, ChatInputCommandUserOption, CommandBuilder, type CommandData, ComponentBuilder, type ComponentBuilderBaseData, ContainerBuilder, type ContainerBuilderData, type ContainerComponentBuilders, ContextMenuCommandBuilder, type ContextMenuCommandType, CustomIdButtonBuilder, type CustomIdButtonStyle, DangerButtonBuilder, EmbedAuthorBuilder, EmbedBuilder, type EmbedBuilderData, EmbedFieldBuilder, EmbedFooterBuilder, type EmojiOrLabelButtonData, EmojiOrLabelButtonMixin, FileBuilder, LabelBuilder, type LabelBuilderData, LinkButtonBuilder, type MappedComponentTypes, MediaGalleryBuilder, type MediaGalleryBuilderData, MediaGalleryItemBuilder, MentionableSelectMenuBuilder, type MessageActionRowComponentBuilder, MessageBuilder, type MessageBuilderData, type MessageComponentBuilder, MessageContextCommandBuilder, MessageReferenceBuilder, type MessageTopLevelComponentBuilder, type ModalActionRowComponentBuilder, ModalBuilder, type ModalBuilderData, type ModalComponentBuilder, PollAnswerBuilder, type PollAnswerData, PollAnswerMediaBuilder, PollBuilder, type PollData, PollMediaBuilder, PollQuestionBuilder, PremiumButtonBuilder, PrimaryButtonBuilder, type RestOrArray, RoleSelectMenuBuilder, SecondaryButtonBuilder, SectionBuilder, type SectionBuilderAccessory, type SectionBuilderData, SeparatorBuilder, SharedChatInputCommandOptions, type SharedChatInputCommandOptionsData, SharedChatInputCommandSubcommands, type SharedChatInputCommandSubcommandsData, SharedName, SharedNameAndDescription, type SharedNameAndDescriptionData, type SharedNameData, StringSelectMenuBuilder, type StringSelectMenuData, StringSelectMenuOptionBuilder, SuccessButtonBuilder, TextDisplayBuilder, TextInputBuilder, ThumbnailBuilder, UserContextCommandBuilder, UserSelectMenuBuilder, ValidationError, actionRowPredicate, allowedMentionPredicate, attachmentPredicate, basicOptionPredicate, buttonPredicate, channelOptionPredicate, chatInputCommandPredicate, chatInputCommandSubcommandGroupPredicate, chatInputCommandSubcommandPredicate, containerPredicate, createComponentBuilder, customIdPredicate, disableValidators, embedAuthorPredicate, embedFieldPredicate, embedFooterPredicate, embedLength, embedPredicate, emojiPredicate, enableValidators, filePredicate, integerOptionPredicate, isValidationEnabled, labelPredicate, localeMapPredicate, mediaGalleryItemPredicate, mediaGalleryPredicate, memberPermissionsPredicate, messageCommandPredicate, messagePredicate, messageReferencePredicate, modalPredicate, normalizeArray, numberOptionPredicate, pollAnswerMediaPredicate, pollAnswerPredicate, pollPredicate, pollQuestionPredicate, resolveAccessoryComponent, resolveBuilder, sectionPredicate, selectMenuChannelPredicate, selectMenuMentionablePredicate, selectMenuRolePredicate, selectMenuStringOptionPredicate, selectMenuStringPredicate, selectMenuUserPredicate, separatorPredicate, stringOptionPredicate, textDisplayPredicate, textInputPredicate, thumbnailPredicate, userCommandPredicate, version };
|
|
4578
|
+
export { ActionRowBuilder, type ActionRowBuilderData, AllowedMentionsBuilder, type AnyActionRowComponentBuilder, type AnyModalComponentBuilder, type ApplicationCommandNumericOptionMinMaxValueData, ApplicationCommandNumericOptionMinMaxValueMixin, type ApplicationCommandOptionAllowedChannelType, ApplicationCommandOptionAllowedChannelTypes, ApplicationCommandOptionBase, type ApplicationCommandOptionBaseData, type ApplicationCommandOptionChannelTypesData, ApplicationCommandOptionChannelTypesMixin, type ApplicationCommandOptionWithAutocompleteData, ApplicationCommandOptionWithAutocompleteMixin, type ApplicationCommandOptionWithChoicesData, ApplicationCommandOptionWithChoicesMixin, AttachmentBuilder, type AutocompletableOptions, BaseButtonBuilder, BaseSelectMenuBuilder, type ButtonBuilder, ChannelSelectMenuBuilder, ChatInputCommandAttachmentOption, ChatInputCommandBooleanOption, ChatInputCommandBuilder, ChatInputCommandChannelOption, ChatInputCommandIntegerOption, ChatInputCommandMentionableOption, ChatInputCommandNumberOption, ChatInputCommandRoleOption, ChatInputCommandStringOption, ChatInputCommandSubcommandBuilder, ChatInputCommandSubcommandGroupBuilder, type ChatInputCommandSubcommandGroupData, ChatInputCommandUserOption, CommandBuilder, type CommandData, ComponentBuilder, type ComponentBuilderBaseData, ContainerBuilder, type ContainerBuilderData, type ContainerComponentBuilders, ContextMenuCommandBuilder, type ContextMenuCommandType, CustomIdButtonBuilder, type CustomIdButtonStyle, DangerButtonBuilder, EmbedAuthorBuilder, EmbedBuilder, type EmbedBuilderData, EmbedFieldBuilder, EmbedFooterBuilder, type EmojiOrLabelButtonData, EmojiOrLabelButtonMixin, FileBuilder, LabelBuilder, type LabelBuilderData, LinkButtonBuilder, type MappedComponentTypes, MediaGalleryBuilder, type MediaGalleryBuilderData, MediaGalleryItemBuilder, MentionableSelectMenuBuilder, type MessageActionRowComponentBuilder, MessageBuilder, type MessageBuilderData, type MessageComponentBuilder, MessageContextCommandBuilder, MessageReferenceBuilder, type MessageTopLevelComponentBuilder, type ModalActionRowComponentBuilder, ModalBuilder, type ModalBuilderData, type ModalComponentBuilder, PollAnswerBuilder, type PollAnswerData, PollAnswerMediaBuilder, PollBuilder, type PollData, PollMediaBuilder, PollQuestionBuilder, PremiumButtonBuilder, PrimaryButtonBuilder, type RestOrArray, RoleSelectMenuBuilder, SecondaryButtonBuilder, SectionBuilder, type SectionBuilderAccessory, type SectionBuilderData, SeparatorBuilder, SharedChatInputCommandOptions, type SharedChatInputCommandOptionsData, SharedChatInputCommandSubcommands, type SharedChatInputCommandSubcommandsData, SharedName, SharedNameAndDescription, type SharedNameAndDescriptionData, type SharedNameData, StringSelectMenuBuilder, type StringSelectMenuData, StringSelectMenuOptionBuilder, SuccessButtonBuilder, TextDisplayBuilder, TextInputBuilder, ThumbnailBuilder, UserContextCommandBuilder, UserSelectMenuBuilder, ValidationError, actionRowPredicate, allowedMentionPredicate, attachmentPredicate, basicOptionPredicate, buttonPredicate, channelOptionPredicate, chatInputCommandPredicate, chatInputCommandSubcommandGroupPredicate, chatInputCommandSubcommandPredicate, containerPredicate, createComponentBuilder, customIdPredicate, disableValidators, embedAuthorPredicate, embedFieldPredicate, embedFooterPredicate, embedLength, embedPredicate, emojiPredicate, enableValidators, filePredicate, idPredicate, integerOptionPredicate, isValidationEnabled, labelPredicate, localeMapPredicate, mediaGalleryItemPredicate, mediaGalleryPredicate, memberPermissionsPredicate, messageCommandPredicate, messagePredicate, messageReferencePredicate, modalPredicate, normalizeArray, numberOptionPredicate, pollAnswerMediaPredicate, pollAnswerPredicate, pollPredicate, pollQuestionPredicate, resolveAccessoryComponent, resolveBuilder, sectionPredicate, selectMenuChannelPredicate, selectMenuMentionablePredicate, selectMenuRolePredicate, selectMenuStringOptionPredicate, selectMenuStringPredicate, selectMenuUserPredicate, separatorPredicate, stringOptionPredicate, textDisplayPredicate, textInputPredicate, thumbnailPredicate, userCommandPredicate, version };
|