@discordjs/builders 2.0.0-dev.1752365784-3cff4d741 → 2.0.0-dev.1752452146-7e3d4e536
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 +64 -64
- package/dist/index.d.ts +64 -64
- package/dist/index.js +213 -213
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ import * as discord_api_types_v10 from 'discord-api-types/v10';
|
|
|
2
2
|
import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIBaseComponent, ComponentType, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, APIFileComponent, APIMediaGalleryItem, APIMediaGalleryComponent, APITextDisplayComponent, APIThumbnailComponent, APISectionComponent, ButtonStyle, APISeparatorComponent, SeparatorSpacingSize, APIContainerComponent, APIActionRowComponent, APIComponentInContainer, APIModalComponent, APIMessageComponent, APISectionAccessoryComponent, APIComponentInActionRow, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIComponentInModalActionRow, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment, RESTAPIMessageReference, RESTPostAPIChannelMessageJSONBody, APIMessageReference, APIComponentInMessageActionRow as APIComponentInMessageActionRow$1, APIMessageTopLevelComponent, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
|
|
3
3
|
import { JSONEncodable } from '@discordjs/util';
|
|
4
4
|
import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
|
|
5
|
-
import * as
|
|
6
|
-
import { z } from 'zod
|
|
5
|
+
import * as zod from 'zod';
|
|
6
|
+
import { z } from 'zod';
|
|
7
7
|
import { APIComponentInMessageActionRow, APISeparatorComponent as APISeparatorComponent$1 } from 'discord-api-types/v9';
|
|
8
8
|
import * as zod_v4_core from 'zod/v4/core';
|
|
9
9
|
|
|
@@ -2052,14 +2052,14 @@ declare class ChatInputCommandChannelOption extends ChatInputCommandChannelOptio
|
|
|
2052
2052
|
/**
|
|
2053
2053
|
* @internal
|
|
2054
2054
|
*/
|
|
2055
|
-
protected static readonly predicate:
|
|
2056
|
-
channel_types:
|
|
2057
|
-
name:
|
|
2058
|
-
name_localizations:
|
|
2059
|
-
description:
|
|
2060
|
-
description_localizations:
|
|
2061
|
-
required:
|
|
2062
|
-
type:
|
|
2055
|
+
protected static readonly predicate: zod.ZodObject<{
|
|
2056
|
+
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>>>;
|
|
2057
|
+
name: zod.ZodString;
|
|
2058
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2059
|
+
description: zod.ZodString;
|
|
2060
|
+
description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2061
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2062
|
+
type: zod.ZodLiteral<ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Boolean | ApplicationCommandOptionType.User | ApplicationCommandOptionType.Channel | ApplicationCommandOptionType.Role | ApplicationCommandOptionType.Mentionable | ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Attachment>;
|
|
2063
2063
|
}, zod_v4_core.$strip>;
|
|
2064
2064
|
/**
|
|
2065
2065
|
* Creates a new channel option.
|
|
@@ -2082,24 +2082,24 @@ declare class ChatInputCommandIntegerOption extends ChatInputCommandIntegerOptio
|
|
|
2082
2082
|
/**
|
|
2083
2083
|
* @internal
|
|
2084
2084
|
*/
|
|
2085
|
-
protected static readonly predicate:
|
|
2086
|
-
max_value:
|
|
2087
|
-
min_value:
|
|
2088
|
-
name:
|
|
2089
|
-
name_localizations:
|
|
2090
|
-
description:
|
|
2091
|
-
description_localizations:
|
|
2092
|
-
required:
|
|
2093
|
-
type:
|
|
2094
|
-
}, zod_v4_core.$strip>,
|
|
2095
|
-
autocomplete:
|
|
2096
|
-
choices:
|
|
2097
|
-
}, zod_v4_core.$strip>,
|
|
2098
|
-
autocomplete:
|
|
2099
|
-
choices:
|
|
2100
|
-
name:
|
|
2101
|
-
name_localizations:
|
|
2102
|
-
value:
|
|
2085
|
+
protected static readonly predicate: zod.ZodIntersection<zod.ZodObject<{
|
|
2086
|
+
max_value: zod.ZodOptional<zod.ZodInt>;
|
|
2087
|
+
min_value: zod.ZodOptional<zod.ZodInt>;
|
|
2088
|
+
name: zod.ZodString;
|
|
2089
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2090
|
+
description: zod.ZodString;
|
|
2091
|
+
description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2092
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2093
|
+
type: zod.ZodLiteral<ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Boolean | ApplicationCommandOptionType.User | ApplicationCommandOptionType.Channel | ApplicationCommandOptionType.Role | ApplicationCommandOptionType.Mentionable | ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Attachment>;
|
|
2094
|
+
}, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
2095
|
+
autocomplete: zod.ZodLiteral<true>;
|
|
2096
|
+
choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
|
|
2097
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
2098
|
+
autocomplete: zod.ZodOptional<zod.ZodLiteral<false>>;
|
|
2099
|
+
choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2100
|
+
name: zod.ZodString;
|
|
2101
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2102
|
+
value: zod.ZodNumber;
|
|
2103
2103
|
}, zod_v4_core.$strip>>>;
|
|
2104
2104
|
}, zod_v4_core.$strip>]>>;
|
|
2105
2105
|
/**
|
|
@@ -2133,24 +2133,24 @@ declare class ChatInputCommandNumberOption extends ChatInputCommandNumberOption_
|
|
|
2133
2133
|
/**
|
|
2134
2134
|
* @internal
|
|
2135
2135
|
*/
|
|
2136
|
-
protected static readonly predicate:
|
|
2137
|
-
max_value:
|
|
2138
|
-
min_value:
|
|
2139
|
-
name:
|
|
2140
|
-
name_localizations:
|
|
2141
|
-
description:
|
|
2142
|
-
description_localizations:
|
|
2143
|
-
required:
|
|
2144
|
-
type:
|
|
2145
|
-
}, zod_v4_core.$strip>,
|
|
2146
|
-
autocomplete:
|
|
2147
|
-
choices:
|
|
2148
|
-
}, zod_v4_core.$strip>,
|
|
2149
|
-
autocomplete:
|
|
2150
|
-
choices:
|
|
2151
|
-
name:
|
|
2152
|
-
name_localizations:
|
|
2153
|
-
value:
|
|
2136
|
+
protected static readonly predicate: zod.ZodIntersection<zod.ZodObject<{
|
|
2137
|
+
max_value: zod.ZodOptional<zod.ZodFloat32>;
|
|
2138
|
+
min_value: zod.ZodOptional<zod.ZodFloat32>;
|
|
2139
|
+
name: zod.ZodString;
|
|
2140
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2141
|
+
description: zod.ZodString;
|
|
2142
|
+
description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2143
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2144
|
+
type: zod.ZodLiteral<ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Boolean | ApplicationCommandOptionType.User | ApplicationCommandOptionType.Channel | ApplicationCommandOptionType.Role | ApplicationCommandOptionType.Mentionable | ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Attachment>;
|
|
2145
|
+
}, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
2146
|
+
autocomplete: zod.ZodLiteral<true>;
|
|
2147
|
+
choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
|
|
2148
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
2149
|
+
autocomplete: zod.ZodOptional<zod.ZodLiteral<false>>;
|
|
2150
|
+
choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2151
|
+
name: zod.ZodString;
|
|
2152
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2153
|
+
value: zod.ZodNumber;
|
|
2154
2154
|
}, zod_v4_core.$strip>>>;
|
|
2155
2155
|
}, zod_v4_core.$strip>]>>;
|
|
2156
2156
|
/**
|
|
@@ -2183,24 +2183,24 @@ declare class ChatInputCommandStringOption extends ChatInputCommandStringOption_
|
|
|
2183
2183
|
/**
|
|
2184
2184
|
* @internal
|
|
2185
2185
|
*/
|
|
2186
|
-
protected static readonly predicate:
|
|
2187
|
-
name:
|
|
2188
|
-
name_localizations:
|
|
2189
|
-
description:
|
|
2190
|
-
description_localizations:
|
|
2191
|
-
required:
|
|
2192
|
-
type:
|
|
2193
|
-
max_length:
|
|
2194
|
-
min_length:
|
|
2195
|
-
}, zod_v4_core.$strip>,
|
|
2196
|
-
autocomplete:
|
|
2197
|
-
choices:
|
|
2198
|
-
}, zod_v4_core.$strip>,
|
|
2199
|
-
autocomplete:
|
|
2200
|
-
choices:
|
|
2201
|
-
name:
|
|
2202
|
-
name_localizations:
|
|
2203
|
-
value:
|
|
2186
|
+
protected static readonly predicate: zod.ZodIntersection<zod.ZodObject<{
|
|
2187
|
+
name: zod.ZodString;
|
|
2188
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2189
|
+
description: zod.ZodString;
|
|
2190
|
+
description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2191
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2192
|
+
type: zod.ZodLiteral<ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Boolean | ApplicationCommandOptionType.User | ApplicationCommandOptionType.Channel | ApplicationCommandOptionType.Role | ApplicationCommandOptionType.Mentionable | ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Attachment>;
|
|
2193
|
+
max_length: zod.ZodOptional<zod.ZodNumber>;
|
|
2194
|
+
min_length: zod.ZodOptional<zod.ZodNumber>;
|
|
2195
|
+
}, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
2196
|
+
autocomplete: zod.ZodLiteral<true>;
|
|
2197
|
+
choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
|
|
2198
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
2199
|
+
autocomplete: zod.ZodOptional<zod.ZodLiteral<false>>;
|
|
2200
|
+
choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2201
|
+
name: zod.ZodString;
|
|
2202
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2203
|
+
value: zod.ZodString;
|
|
2204
2204
|
}, zod_v4_core.$strip>>>;
|
|
2205
2205
|
}, zod_v4_core.$strip>]>>;
|
|
2206
2206
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as discord_api_types_v10 from 'discord-api-types/v10';
|
|
|
2
2
|
import { APIButtonComponent, APIButtonComponentWithSKUId, APIMessageComponentEmoji, APIBaseComponent, ComponentType, APIButtonComponentWithCustomId, APIButtonComponentWithURL, Snowflake, APISelectMenuComponent, APIChannelSelectComponent, ChannelType, APIMentionableSelectComponent, APISelectMenuDefaultValue, SelectMenuDefaultValueType, APIRoleSelectComponent, APISelectMenuOption, APIStringSelectComponent, APIUserSelectComponent, APITextInputComponent, TextInputStyle, APIFileComponent, APIMediaGalleryItem, APIMediaGalleryComponent, APITextDisplayComponent, APIThumbnailComponent, APISectionComponent, ButtonStyle, APISeparatorComponent, SeparatorSpacingSize, APIContainerComponent, APIActionRowComponent, APIComponentInContainer, APIModalComponent, APIMessageComponent, APISectionAccessoryComponent, APIComponentInActionRow, APIApplicationCommandIntegerOption, APIApplicationCommandChannelOption, APIApplicationCommandNumberOption, APIApplicationCommandStringOption, APIApplicationCommandOptionChoice, RESTPostAPIApplicationCommandsJSONBody, Locale, APIApplicationCommand, APIApplicationCommandBasicOption, APIApplicationCommandOption, ApplicationCommandOptionType, APIApplicationCommandSubcommandOption, APIApplicationCommandSubcommandGroupOption, InteractionContextType, ApplicationIntegrationType, Permissions, RESTPostAPIChatInputApplicationCommandsJSONBody, ApplicationCommandType, RESTPostAPIContextMenuApplicationCommandsJSONBody, APIModalInteractionResponseCallbackData, APIComponentInModalActionRow, APIEmbedAuthor, APIEmbedField, APIEmbedFooter, APIEmbed, PollLayoutType, APIPollMedia, APIPartialEmoji, APIPollAnswer, RESTAPIPoll, APIAllowedMentions, AllowedMentionsTypes, MessageReferenceType, RESTAPIAttachment, RESTAPIMessageReference, RESTPostAPIChannelMessageJSONBody, APIMessageReference, APIComponentInMessageActionRow as APIComponentInMessageActionRow$1, APIMessageTopLevelComponent, APIAttachment, MessageFlags, APIPoll } from 'discord-api-types/v10';
|
|
3
3
|
import { JSONEncodable } from '@discordjs/util';
|
|
4
4
|
import * as ts_mixer_dist_types_types_js from 'ts-mixer/dist/types/types.js';
|
|
5
|
-
import * as
|
|
6
|
-
import { z } from 'zod
|
|
5
|
+
import * as zod from 'zod';
|
|
6
|
+
import { z } from 'zod';
|
|
7
7
|
import { APIComponentInMessageActionRow, APISeparatorComponent as APISeparatorComponent$1 } from 'discord-api-types/v9';
|
|
8
8
|
import * as zod_v4_core from 'zod/v4/core';
|
|
9
9
|
|
|
@@ -2052,14 +2052,14 @@ declare class ChatInputCommandChannelOption extends ChatInputCommandChannelOptio
|
|
|
2052
2052
|
/**
|
|
2053
2053
|
* @internal
|
|
2054
2054
|
*/
|
|
2055
|
-
protected static readonly predicate:
|
|
2056
|
-
channel_types:
|
|
2057
|
-
name:
|
|
2058
|
-
name_localizations:
|
|
2059
|
-
description:
|
|
2060
|
-
description_localizations:
|
|
2061
|
-
required:
|
|
2062
|
-
type:
|
|
2055
|
+
protected static readonly predicate: zod.ZodObject<{
|
|
2056
|
+
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>>>;
|
|
2057
|
+
name: zod.ZodString;
|
|
2058
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2059
|
+
description: zod.ZodString;
|
|
2060
|
+
description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2061
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2062
|
+
type: zod.ZodLiteral<ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Boolean | ApplicationCommandOptionType.User | ApplicationCommandOptionType.Channel | ApplicationCommandOptionType.Role | ApplicationCommandOptionType.Mentionable | ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Attachment>;
|
|
2063
2063
|
}, zod_v4_core.$strip>;
|
|
2064
2064
|
/**
|
|
2065
2065
|
* Creates a new channel option.
|
|
@@ -2082,24 +2082,24 @@ declare class ChatInputCommandIntegerOption extends ChatInputCommandIntegerOptio
|
|
|
2082
2082
|
/**
|
|
2083
2083
|
* @internal
|
|
2084
2084
|
*/
|
|
2085
|
-
protected static readonly predicate:
|
|
2086
|
-
max_value:
|
|
2087
|
-
min_value:
|
|
2088
|
-
name:
|
|
2089
|
-
name_localizations:
|
|
2090
|
-
description:
|
|
2091
|
-
description_localizations:
|
|
2092
|
-
required:
|
|
2093
|
-
type:
|
|
2094
|
-
}, zod_v4_core.$strip>,
|
|
2095
|
-
autocomplete:
|
|
2096
|
-
choices:
|
|
2097
|
-
}, zod_v4_core.$strip>,
|
|
2098
|
-
autocomplete:
|
|
2099
|
-
choices:
|
|
2100
|
-
name:
|
|
2101
|
-
name_localizations:
|
|
2102
|
-
value:
|
|
2085
|
+
protected static readonly predicate: zod.ZodIntersection<zod.ZodObject<{
|
|
2086
|
+
max_value: zod.ZodOptional<zod.ZodInt>;
|
|
2087
|
+
min_value: zod.ZodOptional<zod.ZodInt>;
|
|
2088
|
+
name: zod.ZodString;
|
|
2089
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2090
|
+
description: zod.ZodString;
|
|
2091
|
+
description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2092
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2093
|
+
type: zod.ZodLiteral<ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Boolean | ApplicationCommandOptionType.User | ApplicationCommandOptionType.Channel | ApplicationCommandOptionType.Role | ApplicationCommandOptionType.Mentionable | ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Attachment>;
|
|
2094
|
+
}, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
2095
|
+
autocomplete: zod.ZodLiteral<true>;
|
|
2096
|
+
choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
|
|
2097
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
2098
|
+
autocomplete: zod.ZodOptional<zod.ZodLiteral<false>>;
|
|
2099
|
+
choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2100
|
+
name: zod.ZodString;
|
|
2101
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2102
|
+
value: zod.ZodNumber;
|
|
2103
2103
|
}, zod_v4_core.$strip>>>;
|
|
2104
2104
|
}, zod_v4_core.$strip>]>>;
|
|
2105
2105
|
/**
|
|
@@ -2133,24 +2133,24 @@ declare class ChatInputCommandNumberOption extends ChatInputCommandNumberOption_
|
|
|
2133
2133
|
/**
|
|
2134
2134
|
* @internal
|
|
2135
2135
|
*/
|
|
2136
|
-
protected static readonly predicate:
|
|
2137
|
-
max_value:
|
|
2138
|
-
min_value:
|
|
2139
|
-
name:
|
|
2140
|
-
name_localizations:
|
|
2141
|
-
description:
|
|
2142
|
-
description_localizations:
|
|
2143
|
-
required:
|
|
2144
|
-
type:
|
|
2145
|
-
}, zod_v4_core.$strip>,
|
|
2146
|
-
autocomplete:
|
|
2147
|
-
choices:
|
|
2148
|
-
}, zod_v4_core.$strip>,
|
|
2149
|
-
autocomplete:
|
|
2150
|
-
choices:
|
|
2151
|
-
name:
|
|
2152
|
-
name_localizations:
|
|
2153
|
-
value:
|
|
2136
|
+
protected static readonly predicate: zod.ZodIntersection<zod.ZodObject<{
|
|
2137
|
+
max_value: zod.ZodOptional<zod.ZodFloat32>;
|
|
2138
|
+
min_value: zod.ZodOptional<zod.ZodFloat32>;
|
|
2139
|
+
name: zod.ZodString;
|
|
2140
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2141
|
+
description: zod.ZodString;
|
|
2142
|
+
description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2143
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2144
|
+
type: zod.ZodLiteral<ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Boolean | ApplicationCommandOptionType.User | ApplicationCommandOptionType.Channel | ApplicationCommandOptionType.Role | ApplicationCommandOptionType.Mentionable | ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Attachment>;
|
|
2145
|
+
}, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
2146
|
+
autocomplete: zod.ZodLiteral<true>;
|
|
2147
|
+
choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
|
|
2148
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
2149
|
+
autocomplete: zod.ZodOptional<zod.ZodLiteral<false>>;
|
|
2150
|
+
choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2151
|
+
name: zod.ZodString;
|
|
2152
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2153
|
+
value: zod.ZodNumber;
|
|
2154
2154
|
}, zod_v4_core.$strip>>>;
|
|
2155
2155
|
}, zod_v4_core.$strip>]>>;
|
|
2156
2156
|
/**
|
|
@@ -2183,24 +2183,24 @@ declare class ChatInputCommandStringOption extends ChatInputCommandStringOption_
|
|
|
2183
2183
|
/**
|
|
2184
2184
|
* @internal
|
|
2185
2185
|
*/
|
|
2186
|
-
protected static readonly predicate:
|
|
2187
|
-
name:
|
|
2188
|
-
name_localizations:
|
|
2189
|
-
description:
|
|
2190
|
-
description_localizations:
|
|
2191
|
-
required:
|
|
2192
|
-
type:
|
|
2193
|
-
max_length:
|
|
2194
|
-
min_length:
|
|
2195
|
-
}, zod_v4_core.$strip>,
|
|
2196
|
-
autocomplete:
|
|
2197
|
-
choices:
|
|
2198
|
-
}, zod_v4_core.$strip>,
|
|
2199
|
-
autocomplete:
|
|
2200
|
-
choices:
|
|
2201
|
-
name:
|
|
2202
|
-
name_localizations:
|
|
2203
|
-
value:
|
|
2186
|
+
protected static readonly predicate: zod.ZodIntersection<zod.ZodObject<{
|
|
2187
|
+
name: zod.ZodString;
|
|
2188
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2189
|
+
description: zod.ZodString;
|
|
2190
|
+
description_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2191
|
+
required: zod.ZodOptional<zod.ZodBoolean>;
|
|
2192
|
+
type: zod.ZodLiteral<ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Boolean | ApplicationCommandOptionType.User | ApplicationCommandOptionType.Channel | ApplicationCommandOptionType.Role | ApplicationCommandOptionType.Mentionable | ApplicationCommandOptionType.Number | ApplicationCommandOptionType.Attachment>;
|
|
2193
|
+
max_length: zod.ZodOptional<zod.ZodNumber>;
|
|
2194
|
+
min_length: zod.ZodOptional<zod.ZodNumber>;
|
|
2195
|
+
}, zod_v4_core.$strip>, zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
2196
|
+
autocomplete: zod.ZodLiteral<true>;
|
|
2197
|
+
choices: zod.ZodUnion<readonly [zod.ZodNever, zod.ZodArray<zod.ZodNever>, zod.ZodUndefined]>;
|
|
2198
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
2199
|
+
autocomplete: zod.ZodOptional<zod.ZodLiteral<false>>;
|
|
2200
|
+
choices: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2201
|
+
name: zod.ZodString;
|
|
2202
|
+
name_localizations: zod.ZodOptional<zod.ZodObject<Record<discord_api_types_v10.Locale, zod.ZodOptional<zod.ZodString>>, zod_v4_core.$strict>>;
|
|
2203
|
+
value: zod.ZodString;
|
|
2204
2204
|
}, zod_v4_core.$strip>>>;
|
|
2205
2205
|
}, zod_v4_core.$strip>]>>;
|
|
2206
2206
|
/**
|