Browse Source

fix: Docs failing due to :class:

ames
pull/10166/head
DA-344 3 months ago
parent
commit
86d967cbcd
  1. 3
      discord/components.py
  2. 2
      discord/ui/container.py
  3. 2
      discord/ui/media_gallery.py

3
discord/components.py

@ -829,8 +829,7 @@ class TextDisplay(Component):
class UnfurledMediaItem(AssetMixin):
"""Represents an unfurled media item that can be used on
:class:`MediaGalleryItem`s.
"""Represents an unfurled media item.
Parameters
----------

2
discord/ui/container.py

@ -49,7 +49,7 @@ class Container(View, Item[V]):
Parameters
----------
children: List[:class:`Item`]
The initial children or :class:`View`s of this container. Can have up to 10
The initial children or :class:`View` s of this container. Can have up to 10
items.
accent_colour: Optional[:class:`.Colour`]
The colour of the container. Defaults to ``None``.

2
discord/ui/media_gallery.py

@ -45,7 +45,7 @@ __all__ = ('MediaGallery',)
class MediaGallery(Item[V]):
"""Represents a UI media gallery.
This can contain up to 10 :class:`.MediaGalleryItem`s.
This can contain up to 10 :class:`.MediaGalleryItem` s.
.. versionadded:: 2.6

Loading…
Cancel
Save