@@ -58,7 +58,7 @@ class Label(Item[V]):
5858
5959 def __init__ (
6060 self ,
61- item : Item ,
61+ item : Item = None ,
6262 * ,
6363 label : str ,
6464 description : str | None = None ,
@@ -76,7 +76,8 @@ def __init__(
7676 description = description ,
7777 )
7878
79- self .set_item (item )
79+ if item :
80+ self .set_item (item )
8081
8182 def _set_component_from_item (self , item : Item ):
8283 self ._underlying .component = item ._underlying
@@ -193,7 +194,7 @@ def set_select(
193194 max_values : int = 1 ,
194195 options : list [SelectOption ] | None = None ,
195196 channel_types : list [ChannelType ] | None = None ,
196- disabled : bool = False ,
197+ required : bool = True ,
197198 id : int | None = None ,
198199 ) -> Self :
199200 """Set this label's item to a select menu.
@@ -222,8 +223,8 @@ def set_select(
222223 channel_types: List[:class:`discord.ChannelType`]
223224 A list of channel types that can be selected in this menu.
224225 Only valid for selects of type :attr:`discord.ComponentType.channel_select`.
225- disabled : :class:`bool`
226- Whether the select is disabled or not. Defaults to ``False ``.
226+ required : :class:`bool`
227+ Whether the select is required or not. Defaults to ``True ``.
227228 id: Optional[:class:`int`]
228229 The select menu's ID.
229230 """
@@ -236,7 +237,7 @@ def set_select(
236237 max_values = max_values ,
237238 options = options or [],
238239 channel_types = channel_types or [],
239- disabled = disabled ,
240+ required = required ,
240241 id = id ,
241242 )
242243
0 commit comments