From b699e7e5e569646b6b4208ef6b60bf432ee7cf4b Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Mon, 30 Jun 2025 12:44:04 +0200 Subject: [PATCH] versionadded's and reorders --- docs/interactions/api.rst | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/docs/interactions/api.rst b/docs/interactions/api.rst index e13c47fde..40741768d 100644 --- a/docs/interactions/api.rst +++ b/docs/interactions/api.rst @@ -408,30 +408,44 @@ Enumerations 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. @@ -596,21 +610,21 @@ View :members: :inherited-members: -Modal -~~~~~~ +LayoutView +~~~~~~~~~~ -.. attributetable:: discord.ui.Modal +.. attributetable:: discord.ui.LayoutView -.. autoclass:: discord.ui.Modal +.. autoclass:: discord.ui.LayoutView :members: :inherited-members: -LayoutView -~~~~~~~~~~ +Modal +~~~~~~ -.. attributetable:: discord.ui.LayoutView +.. attributetable:: discord.ui.Modal -.. autoclass:: discord.ui.LayoutView +.. autoclass:: discord.ui.Modal :members: :inherited-members: