mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-23 11:46:18 +00:00
Add note for File.uri and ASCII only names
This commit is contained in:
parent
6f6d990195
commit
76258d071a
@ -133,6 +133,12 @@ class File:
|
|||||||
@property
|
@property
|
||||||
def uri(self) -> str:
|
def uri(self) -> str:
|
||||||
""":class:`str`: Returns the ``attachment://<filename>`` URI for this file.
|
""":class:`str`: Returns the ``attachment://<filename>`` URI for this file.
|
||||||
|
This is used in certain places such as embeds or components to refer
|
||||||
|
to an uploaded file via URL.
|
||||||
|
|
||||||
|
.. info::
|
||||||
|
Due to Discord's filename processing it can only reference files
|
||||||
|
that have fully ASCII filenames.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
.. versionadded:: 2.6
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user