diff options
| author | Nadir Chowdhury <[email protected]> | 2021-04-07 04:44:44 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-06 23:44:44 -0400 |
| commit | 7f0a398c1e58a281d62a9744085dcda44ba4aaa5 (patch) | |
| tree | 66b768295db54c558d22dd97751b7b2ba350afc2 /discord/http.py | |
| parent | Add source_channel and source_guild to Webhook (diff) | |
| download | discord.py-7f0a398c1e58a281d62a9744085dcda44ba4aaa5.tar.xz discord.py-7f0a398c1e58a281d62a9744085dcda44ba4aaa5.zip | |
Use `format_map` instead of `format` for `Route.url`
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py index 3a7dfc28..38ff56ed 100644 --- a/discord/http.py +++ b/discord/http.py @@ -58,7 +58,7 @@ class Route: self.method = method url = self.BASE + self.path if parameters: - self.url = url.format(**{k: _uriquote(v) if isinstance(v, str) else v for k, v in parameters.items()}) + self.url = url.format_map({k: _uriquote(v) if isinstance(v, str) else v for k, v in parameters.items()}) else: self.url = url |