@@ -58,7 +58,7 @@ class Label(Item[V]):
58
58
59
59
def __init__ (
60
60
self ,
61
- item : Item ,
61
+ item : Item = None ,
62
62
* ,
63
63
label : str ,
64
64
description : str | None = None ,
@@ -76,7 +76,8 @@ def __init__(
76
76
description = description ,
77
77
)
78
78
79
- self .set_item (item )
79
+ if item :
80
+ self .set_item (item )
80
81
81
82
def _set_component_from_item (self , item : Item ):
82
83
self ._underlying .component = item ._underlying
@@ -193,7 +194,7 @@ def set_select(
193
194
max_values : int = 1 ,
194
195
options : list [SelectOption ] | None = None ,
195
196
channel_types : list [ChannelType ] | None = None ,
196
- disabled : bool = False ,
197
+ required : bool = True ,
197
198
id : int | None = None ,
198
199
) -> Self :
199
200
"""Set this label's item to a select menu.
@@ -222,8 +223,8 @@ def set_select(
222
223
channel_types: List[:class:`discord.ChannelType`]
223
224
A list of channel types that can be selected in this menu.
224
225
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 ``.
227
228
id: Optional[:class:`int`]
228
229
The select menu's ID.
229
230
"""
@@ -236,7 +237,7 @@ def set_select(
236
237
max_values = max_values ,
237
238
options = options or [],
238
239
channel_types = channel_types or [],
239
- disabled = disabled ,
240
+ required = required ,
240
241
id = id ,
241
242
)
242
243
0 commit comments