@discordjs/builders 0.13.0-dev.1648123730.b520c3d → 0.13.0-dev.1648515278-ac4bc3a
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.ts +90 -3
- package/dist/index.js +1534 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1455 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -449,8 +449,8 @@ declare class UnsafeSelectMenuOptionBuilder {
|
|
|
449
449
|
*/
|
|
450
450
|
setDefault(isDefault?: boolean): this;
|
|
451
451
|
/**
|
|
452
|
-
* Sets the emoji to display on this
|
|
453
|
-
* @param emoji The emoji to display on this
|
|
452
|
+
* Sets the emoji to display on this option
|
|
453
|
+
* @param emoji The emoji to display on this option
|
|
454
454
|
*/
|
|
455
455
|
setEmoji(emoji: APIMessageComponentEmoji): this;
|
|
456
456
|
toJSON(): APISelectMenuOption;
|
|
@@ -485,7 +485,86 @@ declare const buttonLabelValidator: z.ZodString;
|
|
|
485
485
|
declare const buttonStyleValidator: z.ZodNumber;
|
|
486
486
|
declare const placeholderValidator$1: z.ZodString;
|
|
487
487
|
declare const minMaxValidator: z.ZodNumber;
|
|
488
|
-
declare const
|
|
488
|
+
declare const labelValueDescriptionValidator: z.ZodString;
|
|
489
|
+
declare const optionValidator: z.ZodUnion<[z.ZodObject<{
|
|
490
|
+
label: z.ZodString;
|
|
491
|
+
value: z.ZodString;
|
|
492
|
+
description: z.ZodOptional<z.ZodString>;
|
|
493
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
id: z.ZodOptional<z.ZodString>;
|
|
495
|
+
name: z.ZodOptional<z.ZodString>;
|
|
496
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
+
}, "strict", z.ZodTypeAny, {
|
|
498
|
+
name?: string | undefined;
|
|
499
|
+
id?: string | undefined;
|
|
500
|
+
animated?: boolean | undefined;
|
|
501
|
+
}, {
|
|
502
|
+
name?: string | undefined;
|
|
503
|
+
id?: string | undefined;
|
|
504
|
+
animated?: boolean | undefined;
|
|
505
|
+
}>>;
|
|
506
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
|
508
|
+
description?: string | undefined;
|
|
509
|
+
emoji?: {
|
|
510
|
+
name?: string | undefined;
|
|
511
|
+
id?: string | undefined;
|
|
512
|
+
animated?: boolean | undefined;
|
|
513
|
+
} | undefined;
|
|
514
|
+
default?: boolean | undefined;
|
|
515
|
+
value: string;
|
|
516
|
+
label: string;
|
|
517
|
+
}, {
|
|
518
|
+
description?: string | undefined;
|
|
519
|
+
emoji?: {
|
|
520
|
+
name?: string | undefined;
|
|
521
|
+
id?: string | undefined;
|
|
522
|
+
animated?: boolean | undefined;
|
|
523
|
+
} | undefined;
|
|
524
|
+
default?: boolean | undefined;
|
|
525
|
+
value: string;
|
|
526
|
+
label: string;
|
|
527
|
+
}>, z.ZodType<UnsafeSelectMenuOptionBuilder, z.ZodTypeDef, UnsafeSelectMenuOptionBuilder>]>;
|
|
528
|
+
declare const optionsValidator: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
529
|
+
label: z.ZodString;
|
|
530
|
+
value: z.ZodString;
|
|
531
|
+
description: z.ZodOptional<z.ZodString>;
|
|
532
|
+
emoji: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
id: z.ZodOptional<z.ZodString>;
|
|
534
|
+
name: z.ZodOptional<z.ZodString>;
|
|
535
|
+
animated: z.ZodOptional<z.ZodBoolean>;
|
|
536
|
+
}, "strict", z.ZodTypeAny, {
|
|
537
|
+
name?: string | undefined;
|
|
538
|
+
id?: string | undefined;
|
|
539
|
+
animated?: boolean | undefined;
|
|
540
|
+
}, {
|
|
541
|
+
name?: string | undefined;
|
|
542
|
+
id?: string | undefined;
|
|
543
|
+
animated?: boolean | undefined;
|
|
544
|
+
}>>;
|
|
545
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
546
|
+
}, "strip", z.ZodTypeAny, {
|
|
547
|
+
description?: string | undefined;
|
|
548
|
+
emoji?: {
|
|
549
|
+
name?: string | undefined;
|
|
550
|
+
id?: string | undefined;
|
|
551
|
+
animated?: boolean | undefined;
|
|
552
|
+
} | undefined;
|
|
553
|
+
default?: boolean | undefined;
|
|
554
|
+
value: string;
|
|
555
|
+
label: string;
|
|
556
|
+
}, {
|
|
557
|
+
description?: string | undefined;
|
|
558
|
+
emoji?: {
|
|
559
|
+
name?: string | undefined;
|
|
560
|
+
id?: string | undefined;
|
|
561
|
+
animated?: boolean | undefined;
|
|
562
|
+
} | undefined;
|
|
563
|
+
default?: boolean | undefined;
|
|
564
|
+
value: string;
|
|
565
|
+
label: string;
|
|
566
|
+
}>, z.ZodType<UnsafeSelectMenuOptionBuilder, z.ZodTypeDef, UnsafeSelectMenuOptionBuilder>]>, "atleastone">;
|
|
567
|
+
declare const optionsLengthValidator: z.ZodNumber;
|
|
489
568
|
declare function validateRequiredSelectMenuParameters(options: SelectMenuOptionBuilder[], customId?: string): void;
|
|
490
569
|
declare const labelValueValidator: z.ZodString;
|
|
491
570
|
declare const defaultValidator: z.ZodBoolean;
|
|
@@ -499,7 +578,10 @@ declare const Assertions$4_disabledValidator: typeof disabledValidator;
|
|
|
499
578
|
declare const Assertions$4_buttonLabelValidator: typeof buttonLabelValidator;
|
|
500
579
|
declare const Assertions$4_buttonStyleValidator: typeof buttonStyleValidator;
|
|
501
580
|
declare const Assertions$4_minMaxValidator: typeof minMaxValidator;
|
|
581
|
+
declare const Assertions$4_labelValueDescriptionValidator: typeof labelValueDescriptionValidator;
|
|
582
|
+
declare const Assertions$4_optionValidator: typeof optionValidator;
|
|
502
583
|
declare const Assertions$4_optionsValidator: typeof optionsValidator;
|
|
584
|
+
declare const Assertions$4_optionsLengthValidator: typeof optionsLengthValidator;
|
|
503
585
|
declare const Assertions$4_validateRequiredSelectMenuParameters: typeof validateRequiredSelectMenuParameters;
|
|
504
586
|
declare const Assertions$4_labelValueValidator: typeof labelValueValidator;
|
|
505
587
|
declare const Assertions$4_defaultValidator: typeof defaultValidator;
|
|
@@ -515,7 +597,10 @@ declare namespace Assertions$4 {
|
|
|
515
597
|
Assertions$4_buttonStyleValidator as buttonStyleValidator,
|
|
516
598
|
placeholderValidator$1 as placeholderValidator,
|
|
517
599
|
Assertions$4_minMaxValidator as minMaxValidator,
|
|
600
|
+
Assertions$4_labelValueDescriptionValidator as labelValueDescriptionValidator,
|
|
601
|
+
Assertions$4_optionValidator as optionValidator,
|
|
518
602
|
Assertions$4_optionsValidator as optionsValidator,
|
|
603
|
+
Assertions$4_optionsLengthValidator as optionsLengthValidator,
|
|
519
604
|
Assertions$4_validateRequiredSelectMenuParameters as validateRequiredSelectMenuParameters,
|
|
520
605
|
Assertions$4_labelValueValidator as labelValueValidator,
|
|
521
606
|
Assertions$4_defaultValidator as defaultValidator,
|
|
@@ -842,6 +927,8 @@ declare class SelectMenuBuilder extends UnsafeSelectMenuBuilder {
|
|
|
842
927
|
setMaxValues(maxValues: number): this;
|
|
843
928
|
setCustomId(customId: string): this;
|
|
844
929
|
setDisabled(disabled?: boolean): this;
|
|
930
|
+
addOptions(...options: (UnsafeSelectMenuOptionBuilder | APISelectMenuOption)[]): this;
|
|
931
|
+
setOptions(...options: (UnsafeSelectMenuOptionBuilder | APISelectMenuOption)[]): this;
|
|
845
932
|
toJSON(): APISelectMenuComponent;
|
|
846
933
|
}
|
|
847
934
|
|