Browse Source

Add note for File.uri and ASCII only names

pull/10266/head
Rapptz 1 week ago
parent
commit
76258d071a
  1. 6
      discord/file.py

6
discord/file.py

@ -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
"""

Loading…
Cancel
Save