@@ -202,7 +202,7 @@ class InputText(Component):
202202 style: :class:`.InputTextStyle`
203203 The style of the input text field.
204204 custom_id: Optional[:class:`str`]
205- The ID of the input text field that gets received during an interaction.
205+ The custom ID of the input text field that gets received during an interaction.
206206 label: :class:`str`
207207 The label for the input text field.
208208 placeholder: Optional[:class:`str`]
@@ -216,6 +216,8 @@ class InputText(Component):
216216 Whether the input text field is required or not. Defaults to `True`.
217217 value: Optional[:class:`str`]
218218 The value that has been entered in the input text field.
219+ id: Optional[:class:`int`]
220+ The input text's ID.
219221 """
220222
221223 __slots__ : tuple [str , ...] = (
@@ -228,14 +230,15 @@ class InputText(Component):
228230 "max_length" ,
229231 "required" ,
230232 "value" ,
233+ "id" ,
231234 )
232235
233236 __repr_info__ : ClassVar [tuple [str , ...]] = __slots__
234237 versions : tuple [int , ...] = (1 , 2 )
235238
236239 def __init__ (self , data : InputTextComponentPayload ):
237240 self .type = ComponentType .input_text
238- self .id : int = data .get ("id" )
241+ self .id : int | None = data .get ("id" )
239242 self .style : InputTextStyle = try_enum (InputTextStyle , data ["style" ])
240243 self .custom_id = data ["custom_id" ]
241244 self .label : str = data .get ("label" , None )
0 commit comments