diff --git a/discord/components.py b/discord/components.py index d528f02ce..ed15e1c48 100644 --- a/discord/components.py +++ b/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]: diff --git a/discord/ui/file.py b/discord/ui/file.py index 84ef4ef52..3ff6c7d0f 100644 --- a/discord/ui/file.py +++ b/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 diff --git a/discord/ui/separator.py b/discord/ui/separator.py index 2eadd2a4b..33401f880 100644 --- a/discord/ui/separator.py +++ b/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