Skip to content

Commit 13d1fbe

Browse files
committed
Add more detail to what filenames are allowed in File.uri
1 parent 76258d0 commit 13d1fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def uri(self) -> str:
137137
to an uploaded file via URL.
138138
139139
.. info::
140-
Due to Discord's filename processing it can only reference files
141-
that have fully ASCII filenames.
140+
Due to Discord's filename processing, the filename must be ASCII aphanumeric
141+
with underscores, dashes, and periods.
142142
143143
.. versionadded:: 2.6
144144
"""

0 commit comments

Comments
 (0)