File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ class Component:
133133 - :class:`FileComponent`
134134 - :class:`SeparatorComponent`
135135 - :class:`Container`
136+ - :class:`LabelComponent`
136137 - :class:`FileUploadComponent`
137138
138139 This class is abstract and cannot be instantiated.
Original file line number Diff line number Diff line change 5050class Label (Item [V ]):
5151 """Represents a UI label within a modal.
5252
53+ This is a top-level layout component that can only be used on :class:`Modal`.
54+
5355 .. versionadded:: 2.6
5456
5557 Parameters
@@ -60,7 +62,7 @@ class Label(Item[V]):
6062 description: Optional[:class:`str`]
6163 The description text to display right below the label text.
6264 Can only be up to 100 characters.
63- component: Union[ :class:`discord.ui.TextInput`, :class:`discord.ui.Select`]
65+ component: :class:`Item`
6466 The component to display below the label.
6567 id: Optional[:class:`int`]
6668 The ID of the component. This must be unique across the view.
@@ -74,8 +76,7 @@ class Label(Item[V]):
7476 The description text to display right below the label text.
7577 Can only be up to 100 characters.
7678 component: :class:`Item`
77- The component to display below the label. Currently only
78- supports :class:`TextInput` and :class:`Select`.
79+ The component to display below the label.
7980 """
8081
8182 __item_repr_attributes__ : Tuple [str , ...] = (
Original file line number Diff line number Diff line change 4343class TextDisplay (Item [V ]):
4444 """Represents a UI text display.
4545
46- This is a top-level layout component that can only be used on :class:`LayoutView` or :class:`Section`.
46+ This is a top-level layout component that can only be used on :class:`LayoutView`,
47+ :class:`Section`, :class:`Container`, or :class:`Modal`.
4748
4849 .. versionadded:: 2.6
4950
Original file line number Diff line number Diff line change 5353class TextInput (Item [V ]):
5454 """Represents a UI text input.
5555
56+ This a top-level layout component that can only be used in :class:`Label`.
57+
5658 .. container:: operations
5759
5860 .. describe:: str(x)
You can’t perform that action at this time.
0 commit comments