@@ -97,7 +97,7 @@ class Select(Generic[V, ST], Item[V]):
9797
9898 .. versionchanged:: 2.7
9999
100- Can now be sent in :class:`discord.ui.Modal `.
100+ Can now be sent in :class:`discord.ui.DesignerModal `.
101101
102102 Parameters
103103 ----------
@@ -137,16 +137,6 @@ class Select(Generic[V, ST], Item[V]):
137137 ordering. The row number must be between 0 and 4 (i.e. zero indexed).
138138 id: Optional[:class:`int`]
139139 The select menu's ID.
140- label: Optional[:class:`str`]
141- The label for the select menu. Only useable in modals.
142- Must be 45 characters or fewer.
143-
144- .. versionadded:: 2.7
145- description: Optional[:class:`str`]
146- The description for the select menu. Only useable in modals.
147- Must be 100 characters or fewer.
148-
149- .. versionadded:: 2.7
150140 required: Optional[:class:`bool`]
151141 Whether the select is required or not. Only useable in modals. Defaults to ``True`` in modals.
152142
@@ -194,8 +184,6 @@ class Select(Generic[V, ST], Item[V]):
194184 "disabled" ,
195185 "custom_id" ,
196186 "id" ,
197- "label" ,
198- "description" ,
199187 "required" ,
200188 "default_values" ,
201189 )
@@ -213,8 +201,6 @@ def __init__(
213201 disabled : bool = ...,
214202 row : int | None = ...,
215203 id : int | None = ...,
216- label : str | None = ...,
217- description : str | None = ...,
218204 required : bool | None = ...,
219205 ) -> None : ...
220206
@@ -231,8 +217,6 @@ def __init__(
231217 disabled : bool = ...,
232218 row : int | None = ...,
233219 id : int | None = ...,
234- label : str | None = ...,
235- description : str | None = ...,
236220 required : bool | None = ...,
237221 default_values : Sequence [SelectDefaultValue | ST ] | None = ...,
238222 ) -> None : ...
@@ -253,8 +237,6 @@ def __init__(
253237 disabled : bool = ...,
254238 row : int | None = ...,
255239 id : int | None = ...,
256- label : str | None = ...,
257- description : str | None = ...,
258240 required : bool | None = ...,
259241 default_values : Sequence [SelectDefaultValue | ST ] | None = ...,
260242 ) -> None : ...
@@ -272,17 +254,11 @@ def __init__(
272254 disabled : bool = False ,
273255 row : int | None = None ,
274256 id : int | None = None ,
275- label : str | None = None ,
276- description : str | None = None ,
277257 required : bool | None = None ,
278258 default_values : Sequence [SelectDefaultValue | ST ] | None = None ,
279259 ) -> None :
280260 if options and select_type is not ComponentType .string_select :
281261 raise InvalidArgument ("options parameter is only valid for string selects" )
282- if label and len (label ) > 45 :
283- raise ValueError ("label must be 45 characters or fewer" )
284- if description and len (description ) > 100 :
285- raise ValueError ("description must be 100 characters or fewer" )
286262 if channel_types and select_type is not ComponentType .channel_select :
287263 raise InvalidArgument (
288264 "channel_types parameter is only valid for channel selects"
@@ -303,9 +279,6 @@ def __init__(
303279 f"expected custom_id to be str, not { custom_id .__class__ .__name__ } "
304280 )
305281
306- self .label : str | None = label
307- self .description : str | None = description
308-
309282 self ._provided_custom_id = custom_id is not None
310283 custom_id = os .urandom (16 ).hex () if custom_id is None else custom_id
311284 self ._underlying : SelectMenu = SelectMenu ._raw_construct (
@@ -782,9 +755,6 @@ def is_dispatchable(self) -> bool:
782755 def is_storable (self ) -> bool :
783756 return True
784757
785- def uses_label (self ) -> bool :
786- return bool (self .label or self .description or (self .required is not None ))
787-
788758
789759if TYPE_CHECKING :
790760 StringSelect = Select [V , str ]
0 commit comments