@@ -165,7 +165,7 @@ public ModalBuilder AddLabel(
165165 return this ;
166166 }
167167
168- /// <inheritdoc cref="ModalComponentBuilder.WithSelectMenu(string, string, List{SelectMenuOptionBuilder}, string, int, int, bool, ComponentType, ChannelType[], int?, string, int?)"/>
168+ /// <inheritdoc cref="ModalComponentBuilder.WithSelectMenu(string, string, List{SelectMenuOptionBuilder}, string, int, int, bool, bool, ComponentType, ChannelType[], SelectMenuDefaultValue [], int?, string, int?)"/>
169169 /// <returns>The current <see cref="ModalBuilder"/>.</returns>
170170 public ModalBuilder AddSelectMenu (
171171 string label ,
@@ -174,9 +174,11 @@ public ModalBuilder AddSelectMenu(
174174 string placeholder = null ,
175175 int minValues = 1 ,
176176 int maxValues = 1 ,
177+ bool required = true ,
177178 bool disabled = false ,
178179 ComponentType type = ComponentType . SelectMenu ,
179180 ChannelType [ ] channelTypes = null ,
181+ SelectMenuDefaultValue [ ] defaultValues = null ,
180182 int ? id = null ,
181183 string description = null ,
182184 int ? labelId = null
@@ -189,9 +191,11 @@ public ModalBuilder AddSelectMenu(
189191 placeholder ,
190192 minValues ,
191193 maxValues ,
194+ required ,
192195 disabled ,
193196 type ,
194197 channelTypes ,
198+ defaultValues ,
195199 id ,
196200 description ,
197201 labelId
@@ -624,9 +628,11 @@ public ModalComponentBuilder WithLabel(
624628 /// <param name="placeholder">The placeholder of the <see cref="SelectMenuBuilder"/>.</param>
625629 /// <param name="minValues">The min values of the <see cref="SelectMenuBuilder"/>.</param>
626630 /// <param name="maxValues">The max values of the <see cref="SelectMenuBuilder"/>.</param>
631+ /// <param name="required">Whether the <see cref="SelectMenuBuilder"/> is required to be answered.</param>
627632 /// <param name="disabled">Whether the <see cref="SelectMenuBuilder"/> is disabled.</param>
628633 /// <param name="type">The type of the <see cref="SelectMenuBuilder"/>.</param>
629634 /// <param name="channelTypes">The channel types of the <see cref="SelectMenuBuilder"/>.</param>
635+ /// <param name="defaultValues">The default values of the <see cref="SelectMenuBuilder"/>.</param>
630636 /// <param name="id">The id of the <see cref="SelectMenuBuilder"/>.</param>
631637 /// <param name="description">The description around the <see cref="SelectMenuBuilder"/>.</param>
632638 /// <param name="labelId">
@@ -640,9 +646,11 @@ public ModalComponentBuilder WithSelectMenu(
640646 string placeholder = null ,
641647 int minValues = 1 ,
642648 int maxValues = 1 ,
649+ bool required = true ,
643650 bool disabled = false ,
644651 ComponentType type = ComponentType . SelectMenu ,
645652 ChannelType [ ] channelTypes = null ,
653+ SelectMenuDefaultValue [ ] defaultValues = null ,
646654 int ? id = null ,
647655 string description = null ,
648656 int ? labelId = null
@@ -655,9 +663,11 @@ public ModalComponentBuilder WithSelectMenu(
655663 . WithPlaceholder ( placeholder )
656664 . WithMaxValues ( maxValues )
657665 . WithMinValues ( minValues )
666+ . WithRequired ( required )
658667 . WithDisabled ( disabled )
659668 . WithType ( type )
660- . WithChannelTypes ( channelTypes ) ,
669+ . WithChannelTypes ( channelTypes )
670+ . WithDefaultValues ( defaultValues ) ,
661671 description ,
662672 labelId
663673 ) ;
@@ -695,11 +705,11 @@ public ModalComponentBuilder WithSelectMenu(
695705 /// Constructs and adds a <see cref="LabelBuilder"/> with the provided
696706 /// <see cref="FileUploadComponentBuilder"/> to the current <see cref="ModalComponentBuilder"/>.
697707 /// </summary>
698- /// <param name="label">The label around the <see cref="SelectMenuBuilder "/>.</param>
708+ /// <param name="label">The label around the <see cref="FileUploadComponentBuilder "/>.</param>
699709 /// <param name="fileUpload">The file upload to add.</param>
700- /// <param name="description">The description around the <see cref="SelectMenuBuilder "/>.</param>
710+ /// <param name="description">The description around the <see cref="FileUploadComponentBuilder "/>.</param>
701711 /// <param name="labelId">
702- /// The id of the <see cref="LabelBuilder"/> wrapping the <see cref="SelectMenuBuilder "/>.
712+ /// The id of the <see cref="LabelBuilder"/> wrapping the <see cref="FileUploadComponentBuilder "/>.
703713 /// </param>
704714 /// <returns>The current <see cref="ModalComponentBuilder"/>.</returns>
705715 public ModalComponentBuilder WithFileUpload (
@@ -713,15 +723,15 @@ public ModalComponentBuilder WithFileUpload(
713723 /// Constructs and adds a <see cref="LabelBuilder"/> with a <see cref="FileUploadComponentBuilder"/>
714724 /// to the current <see cref="ModalComponentBuilder"/>.
715725 /// </summary>
716- /// <param name="label">The label around the <see cref="SelectMenuBuilder "/>.</param>
726+ /// <param name="label">The label around the <see cref="FileUploadComponentBuilder "/>.</param>
717727 /// <param name="customId">The custom id of the <see cref="FileUploadComponentBuilder"/>.</param>
718728 /// <param name="minValues">The min values of the <see cref="FileUploadComponentBuilder"/>.</param>
719729 /// <param name="maxValues">The max values of the <see cref="FileUploadComponentBuilder"/>.</param>
720730 /// <param name="isRequired">Whether the <see cref="FileUploadComponentBuilder"/> is required.</param>
721731 /// <param name="id">The id of the <see cref="FileUploadComponentBuilder"/>.</param>
722- /// <param name="description">The description around the <see cref="SelectMenuBuilder "/>.</param>
732+ /// <param name="description">The description around the <see cref="FileUploadComponentBuilder "/>.</param>
723733 /// <param name="labelId">
724- /// The id of the <see cref="LabelBuilder"/> wrapping the <see cref="SelectMenuBuilder "/>.
734+ /// The id of the <see cref="LabelBuilder"/> wrapping the <see cref="FileUploadComponentBuilder "/>.
725735 /// </param>
726736 /// <returns>The current <see cref="ModalComponentBuilder"/>.</returns>
727737 public ModalComponentBuilder WithFileUpload (
@@ -767,11 +777,11 @@ public ModalComponentBuilder WithTextDisplay(string content, int? id = null)
767777 /// Constructs and adds a <see cref="LabelBuilder"/> with the provided <see cref="TextInputBuilder"/> to
768778 /// the current <see cref="ModalComponentBuilder"/>.
769779 /// </summary>
770- /// <param name="label">The label around the <see cref="SelectMenuBuilder "/>.</param>
780+ /// <param name="label">The label around the <see cref="TextInputBuilder "/>.</param>
771781 /// <param name="textInput">The text input to add.</param>
772- /// <param name="description">The description around the <see cref="SelectMenuBuilder "/>.</param>
782+ /// <param name="description">The description around the <see cref="TextInputBuilder "/>.</param>
773783 /// <param name="labelId">
774- /// The id of the <see cref="LabelBuilder"/> wrapping the <see cref="SelectMenuBuilder "/>.
784+ /// The id of the <see cref="LabelBuilder"/> wrapping the <see cref="TextInputBuilder "/>.
775785 /// </param>
776786 /// <returns>The current <see cref="ModalComponentBuilder"/>.</returns>
777787 public ModalComponentBuilder WithTextInput (
@@ -823,7 +833,7 @@ public ModalComponentBuilder WithTextInput(TextInputBuilder text, int row)
823833 /// Constructs and adds a <see cref="LabelBuilder"/> with a <see cref="TextInputBuilder"/>
824834 /// to the current <see cref="ModalComponentBuilder"/>.
825835 /// </summary>
826- /// <param name="label">The label around the <see cref="SelectMenuBuilder "/>.</param>
836+ /// <param name="label">The label around the <see cref="TextInputBuilder "/>.</param>
827837 /// <param name="customId">The custom id of the <see cref="TextInputBuilder"/>.</param>
828838 /// <param name="style">The style of the <see cref="TextInputBuilder"/>.</param>
829839 /// <param name="placeholder">The placeholder of the <see cref="TextInputBuilder"/>.</param>
@@ -833,9 +843,9 @@ public ModalComponentBuilder WithTextInput(TextInputBuilder text, int row)
833843 /// <param name="required">Whether the <see cref="TextInputBuilder"/> is required.</param>
834844 /// <param name="value">The value of the <see cref="TextInputBuilder"/>.</param>
835845 /// <param name="id">The id of the <see cref="TextInputBuilder"/>.</param>
836- /// <param name="description">The description around the <see cref="SelectMenuBuilder "/>.</param>
846+ /// <param name="description">The description around the <see cref="TextInputBuilder "/>.</param>
837847 /// <param name="labelId">
838- /// The id of the <see cref="LabelBuilder"/> wrapping the <see cref="SelectMenuBuilder "/>.
848+ /// The id of the <see cref="LabelBuilder"/> wrapping the <see cref="TextInputBuilder "/>.
839849 /// </param>
840850 /// <returns>The current <see cref="ModalComponentBuilder"/>.</returns>
841851 public ModalComponentBuilder WithTextInput (
0 commit comments