Add note for File.uri and ASCII only names

This commit is contained in:
Rapptz 2025-08-18 13:27:18 -04:00
parent 6f6d990195
commit 76258d071a

View File

@ -133,6 +133,12 @@ class File:
@property
def uri(self) -> str:
""":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
"""