Correct supported types in docs for modal components

This commit is contained in:
Soheab_
2025-09-21 16:28:32 +02:00
committed by Rapptz
parent 10bc4ce083
commit 5aa4eb7825
4 changed files with 9 additions and 4 deletions

View File

@@ -43,7 +43,8 @@ __all__ = ('TextDisplay',)
class TextDisplay(Item[V]):
"""Represents a UI text display.
This is a top-level layout component that can only be used on :class:`LayoutView` or :class:`Section`.
This is a top-level layout component that can only be used on :class:`LayoutView`,
:class:`Section`, :class:`Container`, or :class:`Modal`.
.. versionadded:: 2.6