File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1350,8 +1350,13 @@ def walk_components(self) -> Iterator[Component]:
1350
1350
1351
1351
class FileUpload (Component ):
1352
1352
"""Represents an File Upload field from the Discord Bot UI Kit.
1353
+
1353
1354
This inherits from :class:`Component`.
1354
1355
1356
+ .. note::
1357
+
1358
+ This class is not useable by end-users; see :class:`discord.ui.FileUpload` instead.
1359
+
1355
1360
.. versionadded:: 2.7
1356
1361
1357
1362
Attributes
@@ -1392,10 +1397,10 @@ def __init__(self, data: FileUploadComponentPayload):
1392
1397
def to_dict (self ) -> FileUploadComponentPayload :
1393
1398
payload = {
1394
1399
"type" : 19 ,
1395
- "id " : self .id ,
1400
+ "custom_id " : self .custom_id ,
1396
1401
}
1397
- if self .custom_id :
1398
- payload ["custom_id " ] = self .custom_id
1402
+ if self .id is not None :
1403
+ payload ["id " ] = self .id
1399
1404
1400
1405
if self .min_values :
1401
1406
payload ["min_values" ] = self .min_values
You can’t perform that action at this time.
0 commit comments