From 13d1fbee58ba51196a4ccae89f38c8c22a1744ff Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 18 Aug 2025 13:33:30 -0400 Subject: [PATCH] Add more detail to what filenames are allowed in File.uri --- discord/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/file.py b/discord/file.py index 2d7260ff1..e3934e7bc 100644 --- a/discord/file.py +++ b/discord/file.py @@ -137,8 +137,8 @@ class File: to an uploaded file via URL. .. info:: - Due to Discord's filename processing it can only reference files - that have fully ASCII filenames. + Due to Discord's filename processing, the filename must be ASCII aphanumeric + with underscores, dashes, and periods. .. versionadded:: 2.6 """