@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.d.mts +140 -12
- package/dist/index.d.ts +140 -12
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2090,10 +2090,74 @@ declare const sectionPredicate: z.ZodObject<{
|
|
|
2090
2090
|
id: z.ZodOptional<z.ZodInt>;
|
|
2091
2091
|
content: z.ZodString;
|
|
2092
2092
|
}, z.core.$strip>>;
|
|
2093
|
-
accessory: z.ZodUnion<readonly [z.ZodObject<{
|
|
2093
|
+
accessory: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2094
2094
|
type: z.ZodLiteral<ComponentType.Button>;
|
|
2095
|
-
|
|
2095
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2096
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Link>;
|
|
2097
|
+
url: z.ZodURL;
|
|
2098
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2099
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2101
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2102
|
+
}, z.core.$strict>>;
|
|
2103
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2105
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2106
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2107
|
+
custom_id: z.ZodString;
|
|
2108
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2109
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2110
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2111
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2112
|
+
}, z.core.$strict>>;
|
|
2113
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2114
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Primary>;
|
|
2115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2116
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2117
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2118
|
+
custom_id: z.ZodString;
|
|
2119
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2120
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2121
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2122
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2123
|
+
}, z.core.$strict>>;
|
|
2124
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Secondary>;
|
|
2126
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2127
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2128
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2129
|
+
custom_id: z.ZodString;
|
|
2130
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2131
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2133
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2134
|
+
}, z.core.$strict>>;
|
|
2135
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Success>;
|
|
2137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2138
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2139
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2140
|
+
custom_id: z.ZodString;
|
|
2141
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2142
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2143
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2145
|
+
}, z.core.$strict>>;
|
|
2146
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Danger>;
|
|
2148
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2149
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2150
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2151
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Premium>;
|
|
2152
|
+
sku_id: z.ZodString;
|
|
2153
|
+
}, z.core.$strict>], "style">, z.ZodObject<{
|
|
2096
2154
|
type: z.ZodLiteral<ComponentType.Thumbnail>;
|
|
2155
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2156
|
+
media: z.ZodObject<{
|
|
2157
|
+
url: z.ZodURL;
|
|
2158
|
+
}, z.core.$strip>;
|
|
2159
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2160
|
+
spoiler: z.ZodOptional<z.ZodBoolean>;
|
|
2097
2161
|
}, z.core.$strip>]>;
|
|
2098
2162
|
}, z.core.$strip>;
|
|
2099
2163
|
declare const containerPredicate: z.ZodObject<{
|
|
@@ -2133,10 +2197,74 @@ declare const containerPredicate: z.ZodObject<{
|
|
|
2133
2197
|
id: z.ZodOptional<z.ZodInt>;
|
|
2134
2198
|
content: z.ZodString;
|
|
2135
2199
|
}, z.core.$strip>>;
|
|
2136
|
-
accessory: z.ZodUnion<readonly [z.ZodObject<{
|
|
2200
|
+
accessory: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2137
2201
|
type: z.ZodLiteral<ComponentType.Button>;
|
|
2138
|
-
|
|
2202
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2203
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Link>;
|
|
2204
|
+
url: z.ZodURL;
|
|
2205
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2206
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2207
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2208
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2209
|
+
}, z.core.$strict>>;
|
|
2210
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2211
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2212
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2213
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2214
|
+
custom_id: z.ZodString;
|
|
2215
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2216
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2217
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2219
|
+
}, z.core.$strict>>;
|
|
2220
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2221
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Primary>;
|
|
2222
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2223
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2224
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2225
|
+
custom_id: z.ZodString;
|
|
2226
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2227
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2228
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2229
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2230
|
+
}, z.core.$strict>>;
|
|
2231
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2232
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Secondary>;
|
|
2233
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2234
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2235
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2236
|
+
custom_id: z.ZodString;
|
|
2237
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2238
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2239
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2240
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2241
|
+
}, z.core.$strict>>;
|
|
2242
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Success>;
|
|
2244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2245
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2246
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2247
|
+
custom_id: z.ZodString;
|
|
2248
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2249
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2250
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2251
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2252
|
+
}, z.core.$strict>>;
|
|
2253
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2254
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Danger>;
|
|
2255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2256
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2257
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2258
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Premium>;
|
|
2259
|
+
sku_id: z.ZodString;
|
|
2260
|
+
}, z.core.$strict>], "style">, z.ZodObject<{
|
|
2139
2261
|
type: z.ZodLiteral<ComponentType.Thumbnail>;
|
|
2262
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2263
|
+
media: z.ZodObject<{
|
|
2264
|
+
url: z.ZodURL;
|
|
2265
|
+
}, z.core.$strip>;
|
|
2266
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2267
|
+
spoiler: z.ZodOptional<z.ZodBoolean>;
|
|
2140
2268
|
}, z.core.$strip>]>;
|
|
2141
2269
|
}, z.core.$strip>, z.ZodObject<{
|
|
2142
2270
|
type: z.ZodLiteral<ComponentType.Separator>;
|
|
@@ -2184,7 +2312,7 @@ declare abstract class ApplicationCommandNumericOptionMinMaxValueMixin {
|
|
|
2184
2312
|
clearMinValue(): this;
|
|
2185
2313
|
}
|
|
2186
2314
|
|
|
2187
|
-
declare const ApplicationCommandOptionAllowedChannelTypes: readonly [ChannelType.GuildText, ChannelType.GuildVoice, ChannelType.GuildCategory, ChannelType.GuildAnnouncement, ChannelType.AnnouncementThread, ChannelType.PublicThread, ChannelType.PrivateThread, ChannelType.GuildStageVoice, ChannelType.GuildForum, ChannelType.GuildMedia];
|
|
2315
|
+
declare const ApplicationCommandOptionAllowedChannelTypes: readonly [ChannelType.GuildText, ChannelType.GuildVoice, ChannelType.GuildCategory, ChannelType.GuildAnnouncement, ChannelType.AnnouncementThread, ChannelType.PublicThread, ChannelType.PrivateThread, ChannelType.GuildStageVoice, ChannelType.GuildForum, ChannelType.GuildMedia, ChannelType.DM, ChannelType.GroupDM];
|
|
2188
2316
|
interface ApplicationCommandOptionChannelTypesData extends Pick<APIApplicationCommandChannelOption, 'channel_types'> {
|
|
2189
2317
|
}
|
|
2190
2318
|
/**
|
|
@@ -2592,7 +2720,7 @@ declare class ChatInputCommandChannelOption extends ChatInputCommandChannelOptio
|
|
|
2592
2720
|
*/
|
|
2593
2721
|
protected static readonly predicate: zod.ZodObject<{
|
|
2594
2722
|
type: zod.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
2595
|
-
channel_types: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
2723
|
+
channel_types: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
2596
2724
|
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2597
2725
|
name: zod.ZodString;
|
|
2598
2726
|
name_localizations: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -4009,7 +4137,7 @@ declare const userOptionPredicate: z.ZodObject<{
|
|
|
4009
4137
|
}, z.core.$strip>;
|
|
4010
4138
|
declare const channelOptionPredicate: z.ZodObject<{
|
|
4011
4139
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
4012
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
4140
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
4013
4141
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4014
4142
|
name: z.ZodString;
|
|
4015
4143
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -4813,7 +4941,7 @@ declare const chatInputCommandSubcommandPredicate: z.ZodObject<{
|
|
|
4813
4941
|
}, z.core.$strict>>;
|
|
4814
4942
|
}, z.core.$strip> | z.ZodObject<{
|
|
4815
4943
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
4816
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
4944
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
4817
4945
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4818
4946
|
name: z.ZodString;
|
|
4819
4947
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -5687,7 +5815,7 @@ declare const chatInputCommandSubcommandGroupPredicate: z.ZodObject<{
|
|
|
5687
5815
|
}, z.core.$strict>>;
|
|
5688
5816
|
}, z.core.$strip> | z.ZodObject<{
|
|
5689
5817
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
5690
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
5818
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
5691
5819
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
5692
5820
|
name: z.ZodString;
|
|
5693
5821
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -6633,7 +6761,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
|
|
|
6633
6761
|
}, z.core.$strict>>;
|
|
6634
6762
|
}, z.core.$strip> | z.ZodObject<{
|
|
6635
6763
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
6636
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
6764
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
6637
6765
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
6638
6766
|
name: z.ZodString;
|
|
6639
6767
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -7433,7 +7561,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
|
|
|
7433
7561
|
}, z.core.$strict>>;
|
|
7434
7562
|
}, z.core.$strip> | z.ZodObject<{
|
|
7435
7563
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
7436
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
7564
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
7437
7565
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
7438
7566
|
name: z.ZodString;
|
|
7439
7567
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -8306,7 +8434,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
|
|
|
8306
8434
|
}, z.core.$strict>>;
|
|
8307
8435
|
}, z.core.$strip> | z.ZodObject<{
|
|
8308
8436
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
8309
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
8437
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
8310
8438
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
8311
8439
|
name: z.ZodString;
|
|
8312
8440
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -2090,10 +2090,74 @@ declare const sectionPredicate: z.ZodObject<{
|
|
|
2090
2090
|
id: z.ZodOptional<z.ZodInt>;
|
|
2091
2091
|
content: z.ZodString;
|
|
2092
2092
|
}, z.core.$strip>>;
|
|
2093
|
-
accessory: z.ZodUnion<readonly [z.ZodObject<{
|
|
2093
|
+
accessory: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2094
2094
|
type: z.ZodLiteral<ComponentType.Button>;
|
|
2095
|
-
|
|
2095
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2096
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Link>;
|
|
2097
|
+
url: z.ZodURL;
|
|
2098
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2099
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2101
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2102
|
+
}, z.core.$strict>>;
|
|
2103
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2105
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2106
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2107
|
+
custom_id: z.ZodString;
|
|
2108
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2109
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2110
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2111
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2112
|
+
}, z.core.$strict>>;
|
|
2113
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2114
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Primary>;
|
|
2115
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2116
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2117
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2118
|
+
custom_id: z.ZodString;
|
|
2119
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2120
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2121
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2122
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2123
|
+
}, z.core.$strict>>;
|
|
2124
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Secondary>;
|
|
2126
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2127
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2128
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2129
|
+
custom_id: z.ZodString;
|
|
2130
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2131
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2132
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2133
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2134
|
+
}, z.core.$strict>>;
|
|
2135
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Success>;
|
|
2137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2138
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2139
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2140
|
+
custom_id: z.ZodString;
|
|
2141
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2142
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2143
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2145
|
+
}, z.core.$strict>>;
|
|
2146
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Danger>;
|
|
2148
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2149
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2150
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2151
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Premium>;
|
|
2152
|
+
sku_id: z.ZodString;
|
|
2153
|
+
}, z.core.$strict>], "style">, z.ZodObject<{
|
|
2096
2154
|
type: z.ZodLiteral<ComponentType.Thumbnail>;
|
|
2155
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2156
|
+
media: z.ZodObject<{
|
|
2157
|
+
url: z.ZodURL;
|
|
2158
|
+
}, z.core.$strip>;
|
|
2159
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2160
|
+
spoiler: z.ZodOptional<z.ZodBoolean>;
|
|
2097
2161
|
}, z.core.$strip>]>;
|
|
2098
2162
|
}, z.core.$strip>;
|
|
2099
2163
|
declare const containerPredicate: z.ZodObject<{
|
|
@@ -2133,10 +2197,74 @@ declare const containerPredicate: z.ZodObject<{
|
|
|
2133
2197
|
id: z.ZodOptional<z.ZodInt>;
|
|
2134
2198
|
content: z.ZodString;
|
|
2135
2199
|
}, z.core.$strip>>;
|
|
2136
|
-
accessory: z.ZodUnion<readonly [z.ZodObject<{
|
|
2200
|
+
accessory: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2137
2201
|
type: z.ZodLiteral<ComponentType.Button>;
|
|
2138
|
-
|
|
2202
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2203
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Link>;
|
|
2204
|
+
url: z.ZodURL;
|
|
2205
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2206
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2207
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2208
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2209
|
+
}, z.core.$strict>>;
|
|
2210
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2211
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2212
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2213
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2214
|
+
custom_id: z.ZodString;
|
|
2215
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2216
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2217
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2218
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2219
|
+
}, z.core.$strict>>;
|
|
2220
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2221
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Primary>;
|
|
2222
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2223
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2224
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2225
|
+
custom_id: z.ZodString;
|
|
2226
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2227
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2228
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2229
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2230
|
+
}, z.core.$strict>>;
|
|
2231
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2232
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Secondary>;
|
|
2233
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2234
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2235
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2236
|
+
custom_id: z.ZodString;
|
|
2237
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2238
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2239
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2240
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2241
|
+
}, z.core.$strict>>;
|
|
2242
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Success>;
|
|
2244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2245
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2246
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2247
|
+
custom_id: z.ZodString;
|
|
2248
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
2249
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2250
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2251
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
2252
|
+
}, z.core.$strict>>;
|
|
2253
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2254
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Danger>;
|
|
2255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2256
|
+
type: z.ZodLiteral<ComponentType.Button>;
|
|
2257
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
2258
|
+
style: z.ZodLiteral<discord_api_types_v10.ButtonStyle.Premium>;
|
|
2259
|
+
sku_id: z.ZodString;
|
|
2260
|
+
}, z.core.$strict>], "style">, z.ZodObject<{
|
|
2139
2261
|
type: z.ZodLiteral<ComponentType.Thumbnail>;
|
|
2262
|
+
id: z.ZodOptional<z.ZodInt>;
|
|
2263
|
+
media: z.ZodObject<{
|
|
2264
|
+
url: z.ZodURL;
|
|
2265
|
+
}, z.core.$strip>;
|
|
2266
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2267
|
+
spoiler: z.ZodOptional<z.ZodBoolean>;
|
|
2140
2268
|
}, z.core.$strip>]>;
|
|
2141
2269
|
}, z.core.$strip>, z.ZodObject<{
|
|
2142
2270
|
type: z.ZodLiteral<ComponentType.Separator>;
|
|
@@ -2184,7 +2312,7 @@ declare abstract class ApplicationCommandNumericOptionMinMaxValueMixin {
|
|
|
2184
2312
|
clearMinValue(): this;
|
|
2185
2313
|
}
|
|
2186
2314
|
|
|
2187
|
-
declare const ApplicationCommandOptionAllowedChannelTypes: readonly [ChannelType.GuildText, ChannelType.GuildVoice, ChannelType.GuildCategory, ChannelType.GuildAnnouncement, ChannelType.AnnouncementThread, ChannelType.PublicThread, ChannelType.PrivateThread, ChannelType.GuildStageVoice, ChannelType.GuildForum, ChannelType.GuildMedia];
|
|
2315
|
+
declare const ApplicationCommandOptionAllowedChannelTypes: readonly [ChannelType.GuildText, ChannelType.GuildVoice, ChannelType.GuildCategory, ChannelType.GuildAnnouncement, ChannelType.AnnouncementThread, ChannelType.PublicThread, ChannelType.PrivateThread, ChannelType.GuildStageVoice, ChannelType.GuildForum, ChannelType.GuildMedia, ChannelType.DM, ChannelType.GroupDM];
|
|
2188
2316
|
interface ApplicationCommandOptionChannelTypesData extends Pick<APIApplicationCommandChannelOption, 'channel_types'> {
|
|
2189
2317
|
}
|
|
2190
2318
|
/**
|
|
@@ -2592,7 +2720,7 @@ declare class ChatInputCommandChannelOption extends ChatInputCommandChannelOptio
|
|
|
2592
2720
|
*/
|
|
2593
2721
|
protected static readonly predicate: zod.ZodObject<{
|
|
2594
2722
|
type: zod.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
2595
|
-
channel_types: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
2723
|
+
channel_types: zod.ZodOptional<zod.ZodArray<zod.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
2596
2724
|
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2597
2725
|
name: zod.ZodString;
|
|
2598
2726
|
name_localizations: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -4009,7 +4137,7 @@ declare const userOptionPredicate: z.ZodObject<{
|
|
|
4009
4137
|
}, z.core.$strip>;
|
|
4010
4138
|
declare const channelOptionPredicate: z.ZodObject<{
|
|
4011
4139
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
4012
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
4140
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
4013
4141
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4014
4142
|
name: z.ZodString;
|
|
4015
4143
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -4813,7 +4941,7 @@ declare const chatInputCommandSubcommandPredicate: z.ZodObject<{
|
|
|
4813
4941
|
}, z.core.$strict>>;
|
|
4814
4942
|
}, z.core.$strip> | z.ZodObject<{
|
|
4815
4943
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
4816
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
4944
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
4817
4945
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
4818
4946
|
name: z.ZodString;
|
|
4819
4947
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -5687,7 +5815,7 @@ declare const chatInputCommandSubcommandGroupPredicate: z.ZodObject<{
|
|
|
5687
5815
|
}, z.core.$strict>>;
|
|
5688
5816
|
}, z.core.$strip> | z.ZodObject<{
|
|
5689
5817
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
5690
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
5818
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
5691
5819
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
5692
5820
|
name: z.ZodString;
|
|
5693
5821
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -6633,7 +6761,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
|
|
|
6633
6761
|
}, z.core.$strict>>;
|
|
6634
6762
|
}, z.core.$strip> | z.ZodObject<{
|
|
6635
6763
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
6636
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
6764
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
6637
6765
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
6638
6766
|
name: z.ZodString;
|
|
6639
6767
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -7433,7 +7561,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
|
|
|
7433
7561
|
}, z.core.$strict>>;
|
|
7434
7562
|
}, z.core.$strip> | z.ZodObject<{
|
|
7435
7563
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
7436
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
7564
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
7437
7565
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
7438
7566
|
name: z.ZodString;
|
|
7439
7567
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
|
@@ -8306,7 +8434,7 @@ declare const chatInputCommandPredicate: z.ZodObject<{
|
|
|
8306
8434
|
}, z.core.$strict>>;
|
|
8307
8435
|
}, z.core.$strip> | z.ZodObject<{
|
|
8308
8436
|
type: z.ZodLiteral<ApplicationCommandOptionType.Channel>;
|
|
8309
|
-
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
8437
|
+
channel_types: z.ZodOptional<z.ZodArray<z.ZodLiteral<discord_api_types_v10.ChannelType.GuildText | discord_api_types_v10.ChannelType.DM | discord_api_types_v10.ChannelType.GuildVoice | discord_api_types_v10.ChannelType.GroupDM | discord_api_types_v10.ChannelType.GuildCategory | discord_api_types_v10.ChannelType.GuildAnnouncement | discord_api_types_v10.ChannelType.AnnouncementThread | discord_api_types_v10.ChannelType.PublicThread | discord_api_types_v10.ChannelType.PrivateThread | discord_api_types_v10.ChannelType.GuildStageVoice | discord_api_types_v10.ChannelType.GuildForum | discord_api_types_v10.ChannelType.GuildMedia>>>;
|
|
8310
8438
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
8311
8439
|
name: z.ZodString;
|
|
8312
8440
|
name_localizations: z.ZodOptional<z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -1787,10 +1787,7 @@ var sectionPredicate = import_zod6.z.object({
|
|
|
1787
1787
|
type: import_zod6.z.literal(import_v1016.ComponentType.Section),
|
|
1788
1788
|
id: idPredicate,
|
|
1789
1789
|
components: import_zod6.z.array(textDisplayPredicate).min(1).max(3),
|
|
1790
|
-
accessory: import_zod6.z.union([
|
|
1791
|
-
import_zod6.z.object({ type: import_zod6.z.literal(import_v1016.ComponentType.Button) }),
|
|
1792
|
-
import_zod6.z.object({ type: import_zod6.z.literal(import_v1016.ComponentType.Thumbnail) })
|
|
1793
|
-
])
|
|
1790
|
+
accessory: import_zod6.z.union([buttonPredicate, thumbnailPredicate])
|
|
1794
1791
|
});
|
|
1795
1792
|
var containerPredicate = import_zod6.z.object({
|
|
1796
1793
|
type: import_zod6.z.literal(import_v1016.ComponentType.Container),
|
|
@@ -2367,7 +2364,7 @@ var SectionBuilder = class extends ComponentBuilder {
|
|
|
2367
2364
|
const data = {
|
|
2368
2365
|
...structuredClone(rest),
|
|
2369
2366
|
components: components.map((component) => component.toJSON(false)),
|
|
2370
|
-
accessory: accessory?.toJSON(
|
|
2367
|
+
accessory: accessory?.toJSON(false)
|
|
2371
2368
|
};
|
|
2372
2369
|
validate(sectionPredicate, data, validationOverride);
|
|
2373
2370
|
return data;
|
|
@@ -2906,7 +2903,9 @@ var ApplicationCommandOptionAllowedChannelTypes = [
|
|
|
2906
2903
|
import_v1027.ChannelType.PrivateThread,
|
|
2907
2904
|
import_v1027.ChannelType.GuildStageVoice,
|
|
2908
2905
|
import_v1027.ChannelType.GuildForum,
|
|
2909
|
-
import_v1027.ChannelType.GuildMedia
|
|
2906
|
+
import_v1027.ChannelType.GuildMedia,
|
|
2907
|
+
import_v1027.ChannelType.DM,
|
|
2908
|
+
import_v1027.ChannelType.GroupDM
|
|
2910
2909
|
];
|
|
2911
2910
|
var ApplicationCommandOptionChannelTypesMixin = class {
|
|
2912
2911
|
static {
|
|
@@ -6104,7 +6103,7 @@ var MessageBuilder = class {
|
|
|
6104
6103
|
};
|
|
6105
6104
|
|
|
6106
6105
|
// src/index.ts
|
|
6107
|
-
var version = "2.0.0-dev.
|
|
6106
|
+
var version = "2.0.0-dev.1790769779-eec9b8f9a";
|
|
6108
6107
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6109
6108
|
0 && (module.exports = {
|
|
6110
6109
|
ActionRowBuilder,
|