mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-13 17:29:50 +00:00
Document attachment:// URI more prominently in Embed docs
This commit is contained in:
parent
38ec8cfb0e
commit
bc00bc495e
@ -362,6 +362,7 @@ class Embed:
|
|||||||
The footer text. Can only be up to 2048 characters.
|
The footer text. Can only be up to 2048 characters.
|
||||||
icon_url: :class:`str`
|
icon_url: :class:`str`
|
||||||
The URL of the footer icon. Only HTTP(S) is supported.
|
The URL of the footer icon. Only HTTP(S) is supported.
|
||||||
|
Inline attachment URLs are also supported, see :ref:`local_image`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._footer = {}
|
self._footer = {}
|
||||||
@ -414,6 +415,7 @@ class Embed:
|
|||||||
-----------
|
-----------
|
||||||
url: :class:`str`
|
url: :class:`str`
|
||||||
The source URL for the image. Only HTTP(S) is supported.
|
The source URL for the image. Only HTTP(S) is supported.
|
||||||
|
Inline attachment URLs are also supported, see :ref:`local_image`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if url is None:
|
if url is None:
|
||||||
@ -457,6 +459,7 @@ class Embed:
|
|||||||
-----------
|
-----------
|
||||||
url: :class:`str`
|
url: :class:`str`
|
||||||
The source URL for the thumbnail. Only HTTP(S) is supported.
|
The source URL for the thumbnail. Only HTTP(S) is supported.
|
||||||
|
Inline attachment URLs are also supported, see :ref:`local_image`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if url is None:
|
if url is None:
|
||||||
@ -522,6 +525,7 @@ class Embed:
|
|||||||
The URL for the author.
|
The URL for the author.
|
||||||
icon_url: :class:`str`
|
icon_url: :class:`str`
|
||||||
The URL of the author icon. Only HTTP(S) is supported.
|
The URL of the author icon. Only HTTP(S) is supported.
|
||||||
|
Inline attachment URLs are also supported, see :ref:`local_image`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._author = {
|
self._author = {
|
||||||
|
@ -318,6 +318,8 @@ Quick example:
|
|||||||
|
|
||||||
See `aiohttp's full documentation <http://aiohttp.readthedocs.io/en/stable/>`_ for more information.
|
See `aiohttp's full documentation <http://aiohttp.readthedocs.io/en/stable/>`_ for more information.
|
||||||
|
|
||||||
|
.. _local_image:
|
||||||
|
|
||||||
How do I use a local image file for an embed image?
|
How do I use a local image file for an embed image?
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user