Add support for label components and select in modals

This commit is contained in:
Rapptz
2025-08-14 00:27:47 -04:00
parent 9fb74fd7a1
commit 3fb627d078
11 changed files with 325 additions and 14 deletions

View File

@ -113,6 +113,15 @@ TextInput
:members:
:inherited-members:
LabelComponent
~~~~~~~~~~~~~~~~
.. attributetable:: LabelComponent
.. autoclass:: LabelComponent()
:members:
:inherited-members:
SectionComponent
~~~~~~~~~~~~~~~~
@ -425,7 +434,7 @@ Enumerations
.. attribute:: media_gallery
Represents a media gallery component.
.. versionadded:: 2.6
.. attribute:: file
@ -446,6 +455,12 @@ Enumerations
.. versionadded:: 2.6
.. attribute:: label
Represents a label container component, usually in a modal.
.. versionadded:: 2.6
.. class:: ButtonStyle
Represents the style of the button component.
@ -742,6 +757,15 @@ File
:members:
:inherited-members:
Label
~~~~~~
.. attributetable:: discord.ui.Label
.. autoclass:: discord.ui.Label
:members:
:inherited-members:
MediaGallery
~~~~~~~~~~~~