mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 01:16:21 +00:00
Add support for components V2
Co-authored-by: Michael H <michael@michaelhall.tech> Co-authored-by: Soheab <33902984+Soheab@users.noreply.github.com> Co-authored-by: owocado <24418520+owocado@users.noreply.github.com> Co-authored-by: Jay3332 <40323796+jay3332@users.noreply.github.com> Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
This commit is contained in:
@ -113,6 +113,77 @@ TextInput
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
SectionComponent
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: SectionComponent
|
||||
|
||||
.. autoclass:: SectionComponent()
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
ThumbnailComponent
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: ThumbnailComponent
|
||||
|
||||
.. autoclass:: ThumbnailComponent()
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
TextDisplay
|
||||
~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: TextDisplay
|
||||
|
||||
.. autoclass:: TextDisplay()
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
MediaGalleryComponent
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: MediaGalleryComponent
|
||||
|
||||
.. autoclass:: MediaGalleryComponent()
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
FileComponent
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: FileComponent
|
||||
|
||||
.. autoclass:: FileComponent()
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
SeparatorComponent
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: SeparatorComponent
|
||||
|
||||
.. autoclass:: SeparatorComponent()
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
Container
|
||||
~~~~~~~~~
|
||||
|
||||
.. attributetable:: Container
|
||||
|
||||
.. autoclass:: Container()
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
AppCommand
|
||||
~~~~~~~~~~~
|
||||
|
||||
@ -299,7 +370,7 @@ Enumerations
|
||||
|
||||
.. attribute:: action_row
|
||||
|
||||
Represents the group component which holds different components in a row.
|
||||
Represents a component which holds different components in a row.
|
||||
|
||||
.. attribute:: button
|
||||
|
||||
@ -333,6 +404,48 @@ Enumerations
|
||||
|
||||
Represents a channel select component.
|
||||
|
||||
.. attribute:: section
|
||||
|
||||
Represents a component which holds different components in a section.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
.. attribute:: text_display
|
||||
|
||||
Represents a text display component.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
.. attribute:: thumbnail
|
||||
|
||||
Represents a thumbnail component.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
.. attribute:: media_gallery
|
||||
|
||||
Represents a media gallery component.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
.. attribute:: file
|
||||
|
||||
Represents a file component.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
.. attribute:: separator
|
||||
|
||||
Represents a separator component.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
.. attribute:: container
|
||||
|
||||
Represents a component which holds different components in a container.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
.. class:: ButtonStyle
|
||||
|
||||
Represents the style of the button component.
|
||||
@ -467,6 +580,19 @@ Enumerations
|
||||
|
||||
The permission is for a user.
|
||||
|
||||
.. class:: SeparatorSpacing
|
||||
|
||||
The separator's size type.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
.. attribute:: small
|
||||
|
||||
A small separator.
|
||||
.. attribute:: large
|
||||
|
||||
A large separator.
|
||||
|
||||
.. _discord_ui_kit:
|
||||
|
||||
Bot UI Kit
|
||||
@ -482,6 +608,16 @@ View
|
||||
|
||||
.. autoclass:: discord.ui.View
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
LayoutView
|
||||
~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.LayoutView
|
||||
|
||||
.. autoclass:: discord.ui.LayoutView
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
Modal
|
||||
~~~~~~
|
||||
@ -586,6 +722,86 @@ TextInput
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
Container
|
||||
~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.Container
|
||||
|
||||
.. autoclass:: discord.ui.Container
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
File
|
||||
~~~~
|
||||
|
||||
.. attributetable:: discord.ui.File
|
||||
|
||||
.. autoclass:: discord.ui.File
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
MediaGallery
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.MediaGallery
|
||||
|
||||
.. autoclass:: discord.ui.MediaGallery
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
Section
|
||||
~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.Section
|
||||
|
||||
.. autoclass:: discord.ui.Section
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
Separator
|
||||
~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.Separator
|
||||
|
||||
.. autoclass:: discord.ui.Separator
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
TextDisplay
|
||||
~~~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.TextDisplay
|
||||
|
||||
.. autoclass:: discord.ui.TextDisplay
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
Thumbnail
|
||||
~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.Thumbnail
|
||||
|
||||
.. autoclass:: discord.ui.Thumbnail
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
|
||||
ActionRow
|
||||
~~~~~~~~~
|
||||
|
||||
.. attributetable:: discord.ui.ActionRow
|
||||
|
||||
.. autoclass:: discord.ui.ActionRow
|
||||
:members:
|
||||
:inherited-members:
|
||||
|
||||
.. _discord_app_commands:
|
||||
|
||||
Application Commands
|
||||
|
Reference in New Issue
Block a user