From e1b6310ef387481a654a1085653a33aa1b17e034 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 23 Nov 2024 22:04:57 -0500 Subject: [PATCH] Remove / from being safe from URI encoding when constructing paths --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index c66132055..ac1254e3f 100644 --- a/discord/http.py +++ b/discord/http.py @@ -309,7 +309,7 @@ class Route: self.metadata: Optional[str] = metadata url = self.BASE + self.path if parameters: - url = url.format_map({k: _uriquote(v) if isinstance(v, str) else v for k, v in parameters.items()}) + url = url.format_map({k: _uriquote(v, safe='') if isinstance(v, str) else v for k, v in parameters.items()}) self.url: str = url # major parameters: