Browse Source

chore: yet more docs fix

pull/10166/head
DA-344 3 months ago
parent
commit
15ec28b870
  1. 5
      discord/components.py
  2. 4
      discord/ui/file.py
  3. 2
      discord/ui/separator.py

5
discord/components.py

@ -839,8 +839,10 @@ class UnfurledMediaItem(AssetMixin):
Attributes
----------
url: :class:`str`
The URL of this media item.
proxy_url: Optional[:class:`str`]
The proxy URL. This is a cached version of the :attr:`~UnfurledMediaItem.url` in the
The proxy URL. This is a cached version of the :attr:`.url` in the
case of images. When the message is deleted, this URL might be valid for a few minutes
or not valid at all.
height: Optional[:class:`int`]
@ -1100,7 +1102,6 @@ class Container(Component):
return self._colour
accent_color = accent_colour
"""Optional[:class:`Color`]: The container's accent color."""
def _component_factory(data: ComponentPayload, state: Optional[ConnectionState] = None) -> Optional[Component]:

4
discord/ui/file.py

@ -46,7 +46,7 @@ class File(Item[V]):
Parameters
----------
media: Union[:class:`str`, :class:`discord.UnfurledMediaItem`]
media: Union[:class:`str`, :class:`.UnfurledMediaItem`]
This file's media. If this is a string itmust point to a local
file uploaded within the parent view of this item, and must
meet the ``attachment://file-name.extension`` structure.
@ -89,7 +89,7 @@ class File(Item[V]):
@property
def media(self) -> UnfurledMediaItem:
""":class:`UnfurledMediaItem`: Returns this file media."""
""":class:`.UnfurledMediaItem`: Returns this file media."""
return self._underlying.media
@media.setter

2
discord/ui/separator.py

@ -93,7 +93,7 @@ class Separator(Item[V]):
@property
def spacing(self) -> SeparatorSize:
""":class:`SeparatorSize`: The spacing of this separator."""
""":class:`.SeparatorSize`: The spacing of this separator."""
return self._underlying.spacing
@spacing.setter

Loading…
Cancel
Save