Skip to content

Commit 7ba0276

Browse files
committed
docs n enums n stuff
1 parent 033f684 commit 7ba0276

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

discord/components.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,8 @@ class FileUpload(Component):
13521352
"""Represents an File Upload field from the Discord Bot UI Kit.
13531353
This inherits from :class:`Component`.
13541354
1355+
.. versionadded:: 2.7
1356+
13551357
Attributes
13561358
----------
13571359
custom_id: Optional[:class:`str`]

discord/enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ class ComponentType(Enum):
734734
separator = 14
735735
content_inventory_entry = 16
736736
container = 17
737+
label = 18
737738
file_upload = 19
738739

739740
def __int__(self):

docs/api/enums.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,36 @@ of :class:`enum.Enum`.
505505
.. attribute:: channel_select
506506

507507
Represents a channel select component.
508+
.. attribute:: section
509+
510+
Represents a section component.
511+
.. attribute:: text_display
512+
513+
Represents a text display component.
514+
.. attribute:: thumbnail
515+
516+
Represents a thumbnail component.
517+
.. attribute:: media_gallery
518+
519+
Represents a media gallery component.
520+
.. attribute:: file
521+
522+
Represents a file component.
523+
.. attribute:: separator
524+
525+
Represents a separator component.
526+
.. attribute:: content_inventory_entry
527+
528+
Represents a content inventory entry component.
529+
.. attribute:: container
530+
531+
Represents a container component.
532+
.. attribute:: label
533+
534+
Represents a label component.
535+
.. attribute:: file_upload
536+
537+
Represents a file upload component.
508538

509539
.. class:: ButtonStyle
510540

0 commit comments

Comments
 (0)