@@ -581,6 +581,10 @@ class UserSelect(BaseSelect[V]):
581
581
Defaults to 1 and must be between 1 and 25.
582
582
disabled: :class:`bool`
583
583
Whether the select is disabled or not.
584
+ required: :class:`bool`
585
+ Whether the select is required. Only applicable within modals.
586
+
587
+ .. versionadded:: 2.6
584
588
default_values: Sequence[:class:`~discord.abc.Snowflake`]
585
589
A list of objects representing the users that should be selected by default.
586
590
Number of items must be in range of ``min_values`` and ``max_values``.
@@ -612,6 +616,7 @@ def __init__(
612
616
min_values : int = 1 ,
613
617
max_values : int = 1 ,
614
618
disabled : bool = False ,
619
+ required : bool = False ,
615
620
row : Optional [int ] = None ,
616
621
default_values : Sequence [ValidDefaultValues ] = MISSING ,
617
622
id : Optional [int ] = None ,
@@ -623,6 +628,7 @@ def __init__(
623
628
min_values = min_values ,
624
629
max_values = max_values ,
625
630
disabled = disabled ,
631
+ required = required ,
626
632
row = row ,
627
633
default_values = _handle_select_defaults (default_values , self .type ),
628
634
id = id ,
@@ -683,6 +689,10 @@ class RoleSelect(BaseSelect[V]):
683
689
Defaults to 1 and must be between 1 and 25.
684
690
disabled: :class:`bool`
685
691
Whether the select is disabled or not.
692
+ required: :class:`bool`
693
+ Whether the select is required. Only applicable within modals.
694
+
695
+ .. versionadded:: 2.6
686
696
default_values: Sequence[:class:`~discord.abc.Snowflake`]
687
697
A list of objects representing the roles that should be selected by default.
688
698
Number of items must be in range of ``min_values`` and ``max_values``.
@@ -714,6 +724,7 @@ def __init__(
714
724
min_values : int = 1 ,
715
725
max_values : int = 1 ,
716
726
disabled : bool = False ,
727
+ required : bool = False ,
717
728
row : Optional [int ] = None ,
718
729
default_values : Sequence [ValidDefaultValues ] = MISSING ,
719
730
id : Optional [int ] = None ,
@@ -725,6 +736,7 @@ def __init__(
725
736
min_values = min_values ,
726
737
max_values = max_values ,
727
738
disabled = disabled ,
739
+ required = required ,
728
740
row = row ,
729
741
default_values = _handle_select_defaults (default_values , self .type ),
730
742
id = id ,
@@ -780,6 +792,10 @@ class MentionableSelect(BaseSelect[V]):
780
792
Defaults to 1 and must be between 1 and 25.
781
793
disabled: :class:`bool`
782
794
Whether the select is disabled or not.
795
+ required: :class:`bool`
796
+ Whether the select is required. Only applicable within modals.
797
+
798
+ .. versionadded:: 2.6
783
799
default_values: Sequence[:class:`~discord.abc.Snowflake`]
784
800
A list of objects representing the users/roles that should be selected by default.
785
801
if :class:`.Object` is passed, then the type must be specified in the constructor.
@@ -812,6 +828,7 @@ def __init__(
812
828
min_values : int = 1 ,
813
829
max_values : int = 1 ,
814
830
disabled : bool = False ,
831
+ required : bool = False ,
815
832
row : Optional [int ] = None ,
816
833
default_values : Sequence [ValidDefaultValues ] = MISSING ,
817
834
id : Optional [int ] = None ,
@@ -823,6 +840,7 @@ def __init__(
823
840
min_values = min_values ,
824
841
max_values = max_values ,
825
842
disabled = disabled ,
843
+ required = required ,
826
844
row = row ,
827
845
default_values = _handle_select_defaults (default_values , self .type ),
828
846
id = id ,
@@ -885,6 +903,10 @@ class ChannelSelect(BaseSelect[V]):
885
903
Defaults to 1 and must be between 1 and 25.
886
904
disabled: :class:`bool`
887
905
Whether the select is disabled or not.
906
+ required: :class:`bool`
907
+ Whether the select is required. Only applicable within modals.
908
+
909
+ .. versionadded:: 2.6
888
910
default_values: Sequence[:class:`~discord.abc.Snowflake`]
889
911
A list of objects representing the channels that should be selected by default.
890
912
Number of items must be in range of ``min_values`` and ``max_values``.
@@ -920,6 +942,7 @@ def __init__(
920
942
min_values : int = 1 ,
921
943
max_values : int = 1 ,
922
944
disabled : bool = False ,
945
+ required : bool = False ,
923
946
row : Optional [int ] = None ,
924
947
default_values : Sequence [ValidDefaultValues ] = MISSING ,
925
948
id : Optional [int ] = None ,
@@ -931,6 +954,7 @@ def __init__(
931
954
min_values = min_values ,
932
955
max_values = max_values ,
933
956
disabled = disabled ,
957
+ required = required ,
934
958
row = row ,
935
959
channel_types = channel_types ,
936
960
default_values = _handle_select_defaults (default_values , self .type ),
0 commit comments