@discordjs/builders 0.13.0-dev.1649808566-01a423d → 0.14.0-dev.1650197026-b94a876
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/CHANGELOG.md +55 -0
- package/dist/index.d.ts +61 -30
- package/dist/index.js +120 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +97 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,61 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [0.13.0](https://github.com/discordjs/discord.js/compare/@discordjs/builders@0.12.0...@discordjs/builders@0.13.0) (2022-04-17)
|
|
6
|
+
|
|
7
|
+
## Bug Fixes
|
|
8
|
+
|
|
9
|
+
- Validate select menu options (#7566) ([b1d63d9](https://github.com/discordjs/discord.js/commit/b1d63d919a61f309ac89f27016b0f148678dac2b))
|
|
10
|
+
- **SelectMenu:** Set `placeholder` max to 150 (#7538) ([dcd4797](https://github.com/discordjs/discord.js/commit/dcd479767b6ec980a373f2ea1f22754f41661c1e))
|
|
11
|
+
- Only check `instanceof Component` once (#7546) ([0aa4851](https://github.com/discordjs/discord.js/commit/0aa48516a4e33497e8e8dc50da164a57cdee09d3))
|
|
12
|
+
- **builders:** Allow negative min/max value of number/integer option (#7484) ([3baa340](https://github.com/discordjs/discord.js/commit/3baa340821b8ecf8a16253bc0917a1033250d7c9))
|
|
13
|
+
- **components:** SetX should take rest parameters (#7461) ([3617359](https://github.com/discordjs/discord.js/commit/36173590a712f041b087b7882054805a8bd42dae))
|
|
14
|
+
- Unsafe embed builder field normalization (#7418) ([b936103](https://github.com/discordjs/discord.js/commit/b936103395121cb21a8c616f669ddab1d2efb0f1))
|
|
15
|
+
- Fix some typos (#7393) ([92a04f4](https://github.com/discordjs/discord.js/commit/92a04f4d98f6c6760214034cc8f5a1eaa78893c7))
|
|
16
|
+
- **builders:** Make type optional in constructor (#7391) ([4abb28c](https://github.com/discordjs/discord.js/commit/4abb28c0a1256c57a60369a6b8ec9e98c265b489))
|
|
17
|
+
- Don't create new instances of builders classes (#7343) ([d6b56d0](https://github.com/discordjs/discord.js/commit/d6b56d0080c4c5f8ace731f1e8bcae0c9d3fb5a5))
|
|
18
|
+
- **builders:** Dont export `Button` component stuff twice (#7289) ([86d9d06](https://github.com/discordjs/discord.js/commit/86d9d0674347c08d056cd054cb4ce4253195bf94))
|
|
19
|
+
|
|
20
|
+
## Documentation
|
|
21
|
+
|
|
22
|
+
- Completely fix builders example link (#7543) ([1a14c0c](https://github.com/discordjs/discord.js/commit/1a14c0ca562ea173d363a770a0437209f461fd23))
|
|
23
|
+
- Add slash command builders example, fixes #7338 (#7339) ([3ae6f3c](https://github.com/discordjs/discord.js/commit/3ae6f3c313091151245d6e6b52337b459ecfc765))
|
|
24
|
+
- **SlashCommandSubcommands:** Updating old links from Discord developer portal (#7224) ([bd7a6f2](https://github.com/discordjs/discord.js/commit/bd7a6f265212624199fb0b2ddc8ece39759c63de))
|
|
25
|
+
|
|
26
|
+
## Features
|
|
27
|
+
|
|
28
|
+
- Slash command localization for builders (#7683) ([40b9a1d](https://github.com/discordjs/discord.js/commit/40b9a1d67d0b508ec593e030913acd8161cd17f8))
|
|
29
|
+
- Add API v10 support (#7477) ([72577c4](https://github.com/discordjs/discord.js/commit/72577c4bfd02524a27afb6ff4aebba9301a690d3))
|
|
30
|
+
- Add support for module: NodeNext in TS and ESM (#7598) ([8f1986a](https://github.com/discordjs/discord.js/commit/8f1986a6aa98365e09b00e84ad5f9f354ab61f3d))
|
|
31
|
+
- Add Modals and Text Inputs (#7023) ([ed92015](https://github.com/discordjs/discord.js/commit/ed920156344233241a21b0c0b99736a3a855c23c))
|
|
32
|
+
- Add missing `v13` component methods (#7466) ([f7257f0](https://github.com/discordjs/discord.js/commit/f7257f07655076eabfe355cb6a53260b39ca9670))
|
|
33
|
+
- **builders:** Add attachment command option type (#7203) ([ae0f35f](https://github.com/discordjs/discord.js/commit/ae0f35f51d68dfa5a7dc43d161ef9365171debdb))
|
|
34
|
+
- **components:** Add unsafe message component builders (#7387) ([6b6222b](https://github.com/discordjs/discord.js/commit/6b6222bf513d1ee8cd98fba0ad313def560b864f))
|
|
35
|
+
- **embed:** Add setFields (#7322) ([bcc5cda](https://github.com/discordjs/discord.js/commit/bcc5cda8a902ddb28c7e3578e0f29b4272832624))
|
|
36
|
+
- Add components to /builders (#7195) ([2bb40fd](https://github.com/discordjs/discord.js/commit/2bb40fd767cf5918e3ba422ff73082734bfa05b0))
|
|
37
|
+
|
|
38
|
+
## Refactor
|
|
39
|
+
|
|
40
|
+
- Remove nickname parsing (#7736) ([78a3afc](https://github.com/discordjs/discord.js/commit/78a3afcd7fdac358e06764cc0d675e1215c785f3))
|
|
41
|
+
- Replace zod with shapeshift (#7547) ([3c0bbac](https://github.com/discordjs/discord.js/commit/3c0bbac82fa9988af4a62ff00c66d149fbe6b921))
|
|
42
|
+
- Remove store channels (#7634) ([aedddb8](https://github.com/discordjs/discord.js/commit/aedddb875e740e1f1bd77f06ce1b361fd3b7bc36))
|
|
43
|
+
- Allow builders to accept emoji strings (#7616) ([fb9a9c2](https://github.com/discordjs/discord.js/commit/fb9a9c221121ee1c7986f9c775b77b9691a0ae15))
|
|
44
|
+
- Don't return builders from API data (#7584) ([549716e](https://github.com/discordjs/discord.js/commit/549716e4fcec89ca81216a6d22aa8e623175e37a))
|
|
45
|
+
- Remove obsolete builder methods (#7590) ([10607db](https://github.com/discordjs/discord.js/commit/10607dbdafe257c5cbf5b952b7eecec4919e8b4a))
|
|
46
|
+
- **Embed:** Remove add field (#7522) ([8478d2f](https://github.com/discordjs/discord.js/commit/8478d2f4de9ac013733850cbbc67902f7c5abc55))
|
|
47
|
+
- Make `data` public in builders (#7486) ([ba31203](https://github.com/discordjs/discord.js/commit/ba31203a0ad96e0a00f8312c397889351e4c5cfd))
|
|
48
|
+
- **embed:** Remove array support in favor of rest params (#7498) ([b3fa2ec](https://github.com/discordjs/discord.js/commit/b3fa2ece402839008738ad3adce3db958445838d))
|
|
49
|
+
- **components:** Default set boolean methods to true (#7502) ([b122149](https://github.com/discordjs/discord.js/commit/b12214922cea2f43afbe6b1555a74a3c8e16f798))
|
|
50
|
+
- Make public builder props getters (#7422) ([e8252ed](https://github.com/discordjs/discord.js/commit/e8252ed3b981a4b7e4013f12efadd2f5d9318d3e))
|
|
51
|
+
- **builders-methods:** Make methods consistent (#7395) ([f495364](https://github.com/discordjs/discord.js/commit/f4953647ff9f39127978c73bf8a62c08462802ca))
|
|
52
|
+
- Remove conditional autocomplete option return types (#7396) ([0909824](https://github.com/discordjs/discord.js/commit/09098240bfb13b8afafa4ab549f06d236e0ff1c9))
|
|
53
|
+
- **embed:** Mark properties as readonly (#7332) ([31768fc](https://github.com/discordjs/discord.js/commit/31768fcd69ed5b4566a340bda89ce881418e8272))
|
|
54
|
+
|
|
55
|
+
## Typings
|
|
56
|
+
|
|
57
|
+
- Fix regressions (#7649) ([5748dbe](https://github.com/discordjs/discord.js/commit/5748dbe08783beb80c526de38ccd105eb0e82664))
|
|
58
|
+
- Make `required` a boolean (#7307) ([c10afea](https://github.com/discordjs/discord.js/commit/c10afeadc702ab98bec5e077b3b92494a9596f9c))
|
|
59
|
+
|
|
5
60
|
# [0.12.0](https://github.com/discordjs/discord.js/compare/@discordjs/builders@0.11.0...@discordjs/builders@0.12.0) (2021-12-08)
|
|
6
61
|
|
|
7
62
|
## Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _sapphire_shapeshift from '@sapphire/shapeshift';
|
|
2
|
-
import { APIEmbedField, APIEmbedAuthor, APIEmbedFooter, APIEmbedImage, APIEmbed, APISelectMenuOption, APIMessageComponentEmoji, ButtonStyle,
|
|
3
|
-
import { Snowflake } from 'discord-api-types/globals';
|
|
2
|
+
import { APIEmbedField, APIEmbedAuthor, APIEmbedFooter, APIEmbedImage, APIEmbed, APISelectMenuOption, APIMessageComponentEmoji, ButtonStyle, APIActionRowComponentTypes, APIActionRowComponent, APIBaseComponent, ComponentType, APIMessageActionRowComponent, APIModalActionRowComponent, APIButtonComponent, APIMessageComponent, APIModalComponent, APITextInputComponent, TextInputStyle, APIModalInteractionResponseCallbackData, APISelectMenuComponent, LocalizationMap, LocaleString, ApplicationCommandOptionType, APIApplicationCommandBasicOption, APIApplicationCommandAttachmentOption, APIApplicationCommandBooleanOption, ChannelType, APIApplicationCommandChannelOption, APIApplicationCommandOptionChoice, APIApplicationCommandIntegerOption, APIApplicationCommandMentionableOption, APIApplicationCommandNumberOption, APIApplicationCommandRoleOption, APIApplicationCommandStringOption, APIApplicationCommandUserOption, APIApplicationCommandSubcommandGroupOption, APIApplicationCommandSubcommandOption, RESTPostAPIApplicationCommandsJSONBody, APIApplicationCommandOption, Locale, ApplicationCommandType } from 'discord-api-types/v10';
|
|
4
3
|
import { URL } from 'url';
|
|
4
|
+
import { Snowflake } from 'discord-api-types/globals';
|
|
5
5
|
|
|
6
6
|
declare const fieldNamePredicate: _sapphire_shapeshift.StringValidator<string>;
|
|
7
7
|
declare const fieldValuePredicate: _sapphire_shapeshift.StringValidator<string>;
|
|
@@ -539,35 +539,33 @@ interface JSONEncodable<T> {
|
|
|
539
539
|
*/
|
|
540
540
|
declare function isJSONEncodable(maybeEncodable: unknown): maybeEncodable is JSONEncodable<unknown>;
|
|
541
541
|
|
|
542
|
+
declare type AnyAPIActionRowComponent = APIActionRowComponentTypes | APIActionRowComponent<APIActionRowComponentTypes>;
|
|
542
543
|
/**
|
|
543
544
|
* Represents a discord component
|
|
544
545
|
*/
|
|
545
|
-
declare abstract class ComponentBuilder<DataType extends Partial<APIBaseComponent<ComponentType>>
|
|
546
|
-
type: ComponentType;
|
|
547
|
-
} = APIBaseComponent<ComponentType>> implements JSONEncodable<APIModalComponent | APIMessageComponent | APIActionRowComponent<APIModalActionRowComponent | APIMessageActionRowComponent>> {
|
|
546
|
+
declare abstract class ComponentBuilder<DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>> implements JSONEncodable<AnyAPIActionRowComponent> {
|
|
548
547
|
/**
|
|
549
548
|
* The API data associated with this component
|
|
550
549
|
*/
|
|
551
|
-
readonly data: DataType
|
|
552
|
-
abstract toJSON():
|
|
553
|
-
constructor(data: DataType);
|
|
550
|
+
readonly data: Partial<DataType>;
|
|
551
|
+
abstract toJSON(): AnyAPIActionRowComponent;
|
|
552
|
+
constructor(data: Partial<DataType>);
|
|
554
553
|
}
|
|
555
554
|
|
|
556
555
|
declare type MessageComponentBuilder = MessageActionRowComponentBuilder | ActionRowBuilder<MessageActionRowComponentBuilder>;
|
|
557
556
|
declare type ModalComponentBuilder = ModalActionRowComponentBuilder | ActionRowBuilder<ModalActionRowComponentBuilder>;
|
|
558
557
|
declare type MessageActionRowComponentBuilder = ButtonBuilder | SelectMenuBuilder;
|
|
559
558
|
declare type ModalActionRowComponentBuilder = TextInputBuilder;
|
|
559
|
+
declare type AnyComponentBuilder = MessageActionRowComponentBuilder | ModalActionRowComponentBuilder;
|
|
560
560
|
/**
|
|
561
561
|
* Represents an action row component
|
|
562
562
|
*/
|
|
563
|
-
declare class ActionRowBuilder<T extends
|
|
564
|
-
type: ComponentType.ActionRow;
|
|
565
|
-
}, 'components'>> {
|
|
563
|
+
declare class ActionRowBuilder<T extends AnyComponentBuilder> extends ComponentBuilder<APIActionRowComponent<APIMessageActionRowComponent | APIModalActionRowComponent>> {
|
|
566
564
|
/**
|
|
567
565
|
* The components within this action row
|
|
568
566
|
*/
|
|
569
567
|
readonly components: T[];
|
|
570
|
-
constructor({ components, ...data }?: Partial<APIActionRowComponent<
|
|
568
|
+
constructor({ components, ...data }?: Partial<APIActionRowComponent<APIActionRowComponentTypes>>);
|
|
571
569
|
/**
|
|
572
570
|
* Adds components to this action row.
|
|
573
571
|
* @param components The components to add to this action row.
|
|
@@ -585,9 +583,7 @@ declare class ActionRowBuilder<T extends MessageActionRowComponentBuilder | Moda
|
|
|
585
583
|
/**
|
|
586
584
|
* Represents a non-validated button component
|
|
587
585
|
*/
|
|
588
|
-
declare class UnsafeButtonBuilder extends ComponentBuilder<
|
|
589
|
-
type: ComponentType.Button;
|
|
590
|
-
}> {
|
|
586
|
+
declare class UnsafeButtonBuilder extends ComponentBuilder<APIButtonComponent> {
|
|
591
587
|
constructor(data?: Partial<APIButtonComponent>);
|
|
592
588
|
/**
|
|
593
589
|
* Sets the style of this button
|
|
@@ -636,7 +632,7 @@ declare class ButtonBuilder extends UnsafeButtonBuilder {
|
|
|
636
632
|
}
|
|
637
633
|
|
|
638
634
|
interface MappedComponentTypes {
|
|
639
|
-
[ComponentType.ActionRow]: ActionRowBuilder
|
|
635
|
+
[ComponentType.ActionRow]: ActionRowBuilder<AnyComponentBuilder>;
|
|
640
636
|
[ComponentType.Button]: ButtonBuilder;
|
|
641
637
|
[ComponentType.SelectMenu]: SelectMenuBuilder;
|
|
642
638
|
[ComponentType.TextInput]: TextInputBuilder;
|
|
@@ -650,9 +646,7 @@ declare function createComponentBuilder<T extends keyof MappedComponentTypes>(da
|
|
|
650
646
|
}): MappedComponentTypes[T];
|
|
651
647
|
declare function createComponentBuilder<C extends MessageComponentBuilder | ModalComponentBuilder>(data: C): C;
|
|
652
648
|
|
|
653
|
-
declare class UnsafeTextInputBuilder extends ComponentBuilder<
|
|
654
|
-
type: ComponentType.TextInput;
|
|
655
|
-
}> {
|
|
649
|
+
declare class UnsafeTextInputBuilder extends ComponentBuilder<APITextInputComponent> {
|
|
656
650
|
constructor(data?: APITextInputComponent & {
|
|
657
651
|
type?: ComponentType.TextInput;
|
|
658
652
|
});
|
|
@@ -739,7 +733,7 @@ declare namespace Assertions$3 {
|
|
|
739
733
|
}
|
|
740
734
|
|
|
741
735
|
declare class UnsafeModalBuilder implements JSONEncodable<APIModalInteractionResponseCallbackData> {
|
|
742
|
-
readonly data: Partial<
|
|
736
|
+
readonly data: Partial<APIModalInteractionResponseCallbackData>;
|
|
743
737
|
readonly components: ActionRowBuilder<ModalActionRowComponentBuilder>[];
|
|
744
738
|
constructor({ components, ...data }?: Partial<APIModalInteractionResponseCallbackData>);
|
|
745
739
|
/**
|
|
@@ -772,7 +766,7 @@ declare class ModalBuilder extends UnsafeModalBuilder {
|
|
|
772
766
|
}
|
|
773
767
|
|
|
774
768
|
declare const titleValidator: _sapphire_shapeshift.StringValidator<string>;
|
|
775
|
-
declare const componentsValidator: _sapphire_shapeshift.BaseValidator<[ActionRowBuilder<
|
|
769
|
+
declare const componentsValidator: _sapphire_shapeshift.BaseValidator<[ActionRowBuilder<AnyComponentBuilder>, ...ActionRowBuilder<AnyComponentBuilder>[]]>;
|
|
776
770
|
declare function validateRequiredParameters$2(customId?: string, title?: string, components?: ActionRowBuilder<ModalActionRowComponentBuilder>[]): void;
|
|
777
771
|
|
|
778
772
|
declare const Assertions$2_titleValidator: typeof titleValidator;
|
|
@@ -788,9 +782,7 @@ declare namespace Assertions$2 {
|
|
|
788
782
|
/**
|
|
789
783
|
* Represents a non-validated select menu component
|
|
790
784
|
*/
|
|
791
|
-
declare class UnsafeSelectMenuBuilder extends ComponentBuilder<
|
|
792
|
-
type: ComponentType.SelectMenu;
|
|
793
|
-
}> {
|
|
785
|
+
declare class UnsafeSelectMenuBuilder extends ComponentBuilder<APISelectMenuComponent> {
|
|
794
786
|
/**
|
|
795
787
|
* The options within this select menu
|
|
796
788
|
*/
|
|
@@ -851,7 +843,9 @@ declare class SelectMenuBuilder extends UnsafeSelectMenuBuilder {
|
|
|
851
843
|
|
|
852
844
|
declare class SharedNameAndDescription {
|
|
853
845
|
readonly name: string;
|
|
846
|
+
readonly name_localizations?: LocalizationMap;
|
|
854
847
|
readonly description: string;
|
|
848
|
+
readonly description_localizations?: LocalizationMap;
|
|
855
849
|
/**
|
|
856
850
|
* Sets the name
|
|
857
851
|
*
|
|
@@ -864,6 +858,32 @@ declare class SharedNameAndDescription {
|
|
|
864
858
|
* @param description The description
|
|
865
859
|
*/
|
|
866
860
|
setDescription(description: string): this;
|
|
861
|
+
/**
|
|
862
|
+
* Sets a name localization
|
|
863
|
+
*
|
|
864
|
+
* @param locale The locale to set a description for
|
|
865
|
+
* @param localizedName The localized description for the given locale
|
|
866
|
+
*/
|
|
867
|
+
setNameLocalization(locale: LocaleString, localizedName: string | null): this;
|
|
868
|
+
/**
|
|
869
|
+
* Sets the name localizations
|
|
870
|
+
*
|
|
871
|
+
* @param localizedNames The dictionary of localized descriptions to set
|
|
872
|
+
*/
|
|
873
|
+
setNameLocalizations(localizedNames: LocalizationMap | null): this;
|
|
874
|
+
/**
|
|
875
|
+
* Sets a description localization
|
|
876
|
+
*
|
|
877
|
+
* @param locale The locale to set a description for
|
|
878
|
+
* @param localizedDescription The localized description for the given locale
|
|
879
|
+
*/
|
|
880
|
+
setDescriptionLocalization(locale: LocaleString, localizedDescription: string | null): this;
|
|
881
|
+
/**
|
|
882
|
+
* Sets the description localizations
|
|
883
|
+
*
|
|
884
|
+
* @param localizedDescriptions The dictionary of localized descriptions to set
|
|
885
|
+
*/
|
|
886
|
+
setDescriptionLocalizations(localizedDescriptions: LocalizationMap | null): this;
|
|
867
887
|
}
|
|
868
888
|
|
|
869
889
|
declare abstract class ApplicationCommandOptionBase extends SharedNameAndDescription {
|
|
@@ -879,6 +899,11 @@ declare abstract class ApplicationCommandOptionBase extends SharedNameAndDescrip
|
|
|
879
899
|
protected runRequiredValidations(): void;
|
|
880
900
|
}
|
|
881
901
|
|
|
902
|
+
declare class SlashCommandAttachmentOption extends ApplicationCommandOptionBase {
|
|
903
|
+
readonly type: ApplicationCommandOptionType.Attachment;
|
|
904
|
+
toJSON(): APIApplicationCommandAttachmentOption;
|
|
905
|
+
}
|
|
906
|
+
|
|
882
907
|
declare class SlashCommandBooleanOption extends ApplicationCommandOptionBase {
|
|
883
908
|
readonly type: ApplicationCommandOptionType.Boolean;
|
|
884
909
|
toJSON(): APIApplicationCommandBooleanOption;
|
|
@@ -964,11 +989,6 @@ declare class SlashCommandRoleOption extends ApplicationCommandOptionBase {
|
|
|
964
989
|
toJSON(): APIApplicationCommandRoleOption;
|
|
965
990
|
}
|
|
966
991
|
|
|
967
|
-
declare class SlashCommandAttachmentOption extends ApplicationCommandOptionBase {
|
|
968
|
-
readonly type: ApplicationCommandOptionType.Attachment;
|
|
969
|
-
toJSON(): APIApplicationCommandAttachmentOption;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
992
|
declare class SlashCommandStringOption extends ApplicationCommandOptionBase {
|
|
973
993
|
readonly type: ApplicationCommandOptionType.String;
|
|
974
994
|
toJSON(): APIApplicationCommandStringOption;
|
|
@@ -1096,10 +1116,18 @@ declare class SlashCommandBuilder {
|
|
|
1096
1116
|
* The name of this slash command
|
|
1097
1117
|
*/
|
|
1098
1118
|
readonly name: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* The localized names for this command
|
|
1121
|
+
*/
|
|
1122
|
+
readonly name_localizations?: LocalizationMap;
|
|
1099
1123
|
/**
|
|
1100
1124
|
* The description of this slash command
|
|
1101
1125
|
*/
|
|
1102
1126
|
readonly description: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* The localized descriptions for this command
|
|
1129
|
+
*/
|
|
1130
|
+
readonly description_localizations?: LocalizationMap;
|
|
1103
1131
|
/**
|
|
1104
1132
|
* The options of this slash command
|
|
1105
1133
|
*/
|
|
@@ -1151,6 +1179,7 @@ interface ToAPIApplicationCommandOptions {
|
|
|
1151
1179
|
|
|
1152
1180
|
declare function validateName$1(name: unknown): asserts name is string;
|
|
1153
1181
|
declare function validateDescription(description: unknown): asserts description is string;
|
|
1182
|
+
declare function validateLocale(locale: unknown): Locale;
|
|
1154
1183
|
declare function validateMaxOptionsLength(options: unknown): asserts options is ToAPIApplicationCommandOptions[];
|
|
1155
1184
|
declare function validateRequiredParameters$1(name: string, description: string, options: ToAPIApplicationCommandOptions[]): void;
|
|
1156
1185
|
declare function validateDefaultPermission$1(value: unknown): asserts value is boolean;
|
|
@@ -1159,6 +1188,7 @@ declare function validateChoicesLength(amountAdding: number, choices?: APIApplic
|
|
|
1159
1188
|
declare function assertReturnOfBuilder<T extends ApplicationCommandOptionBase | SlashCommandSubcommandBuilder | SlashCommandSubcommandGroupBuilder>(input: unknown, ExpectedInstanceOf: new () => T): asserts input is T;
|
|
1160
1189
|
|
|
1161
1190
|
declare const Assertions$1_validateDescription: typeof validateDescription;
|
|
1191
|
+
declare const Assertions$1_validateLocale: typeof validateLocale;
|
|
1162
1192
|
declare const Assertions$1_validateMaxOptionsLength: typeof validateMaxOptionsLength;
|
|
1163
1193
|
declare const Assertions$1_validateRequired: typeof validateRequired;
|
|
1164
1194
|
declare const Assertions$1_validateChoicesLength: typeof validateChoicesLength;
|
|
@@ -1167,6 +1197,7 @@ declare namespace Assertions$1 {
|
|
|
1167
1197
|
export {
|
|
1168
1198
|
validateName$1 as validateName,
|
|
1169
1199
|
Assertions$1_validateDescription as validateDescription,
|
|
1200
|
+
Assertions$1_validateLocale as validateLocale,
|
|
1170
1201
|
Assertions$1_validateMaxOptionsLength as validateMaxOptionsLength,
|
|
1171
1202
|
validateRequiredParameters$1 as validateRequiredParameters,
|
|
1172
1203
|
validateDefaultPermission$1 as validateDefaultPermission,
|
|
@@ -1254,4 +1285,4 @@ declare function isEquatable(maybeEquatable: unknown): maybeEquatable is Equatab
|
|
|
1254
1285
|
|
|
1255
1286
|
declare function embedLength(data: APIEmbed): number;
|
|
1256
1287
|
|
|
1257
|
-
export { ActionRowBuilder, ButtonBuilder, Assertions$4 as ComponentAssertions, ComponentBuilder, Assertions as ContextMenuCommandAssertions, ContextMenuCommandBuilder, ContextMenuCommandType, Assertions$5 as EmbedAssertions, EmbedAuthorData, EmbedAuthorOptions, EmbedBuilder, EmbedFooterData, EmbedFooterOptions, EmbedImageData, Equatable, Faces, IconData, JSONEncodable, MappedComponentTypes, MessageActionRowComponentBuilder, MessageComponentBuilder, ModalActionRowComponentBuilder, Assertions$2 as ModalAssertions, ModalBuilder, ModalComponentBuilder, RGBTuple, SelectMenuBuilder, SelectMenuOptionBuilder, Assertions$1 as SlashCommandAssertions, SlashCommandAttachmentOption, SlashCommandBooleanOption, SlashCommandBuilder, SlashCommandChannelOption, SlashCommandIntegerOption, SlashCommandMentionableOption, SlashCommandNumberOption, SlashCommandOptionsOnlyBuilder, SlashCommandRoleOption, SlashCommandStringOption, SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder, SlashCommandSubcommandsOnlyBuilder, SlashCommandUserOption, Assertions$3 as TextInputAssertions, TextInputBuilder, TimestampStyles, TimestampStylesString, ToAPIApplicationCommandOptions, UnsafeButtonBuilder, UnsafeEmbedBuilder, UnsafeModalBuilder, UnsafeSelectMenuBuilder, UnsafeSelectMenuOptionBuilder, UnsafeTextInputBuilder, blockQuote, bold, channelMention, codeBlock, createComponentBuilder, embedLength, formatEmoji, hideLinkEmbed, hyperlink, inlineCode, isEquatable, isJSONEncodable, italic, quote, roleMention, spoiler, strikethrough, time, underscore, userMention };
|
|
1288
|
+
export { ActionRowBuilder, AnyAPIActionRowComponent, AnyComponentBuilder, ButtonBuilder, Assertions$4 as ComponentAssertions, ComponentBuilder, Assertions as ContextMenuCommandAssertions, ContextMenuCommandBuilder, ContextMenuCommandType, Assertions$5 as EmbedAssertions, EmbedAuthorData, EmbedAuthorOptions, EmbedBuilder, EmbedFooterData, EmbedFooterOptions, EmbedImageData, Equatable, Faces, IconData, JSONEncodable, MappedComponentTypes, MessageActionRowComponentBuilder, MessageComponentBuilder, ModalActionRowComponentBuilder, Assertions$2 as ModalAssertions, ModalBuilder, ModalComponentBuilder, RGBTuple, SelectMenuBuilder, SelectMenuOptionBuilder, Assertions$1 as SlashCommandAssertions, SlashCommandAttachmentOption, SlashCommandBooleanOption, SlashCommandBuilder, SlashCommandChannelOption, SlashCommandIntegerOption, SlashCommandMentionableOption, SlashCommandNumberOption, SlashCommandOptionsOnlyBuilder, SlashCommandRoleOption, SlashCommandStringOption, SlashCommandSubcommandBuilder, SlashCommandSubcommandGroupBuilder, SlashCommandSubcommandsOnlyBuilder, SlashCommandUserOption, Assertions$3 as TextInputAssertions, TextInputBuilder, TimestampStyles, TimestampStylesString, ToAPIApplicationCommandOptions, UnsafeButtonBuilder, UnsafeEmbedBuilder, UnsafeModalBuilder, UnsafeSelectMenuBuilder, UnsafeSelectMenuOptionBuilder, UnsafeTextInputBuilder, blockQuote, bold, channelMention, codeBlock, createComponentBuilder, embedLength, formatEmoji, hideLinkEmbed, hyperlink, inlineCode, isEquatable, isJSONEncodable, italic, quote, roleMention, spoiler, strikethrough, time, underscore, userMention };
|