aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
diff options
context:
space:
mode:
authorDevon R <[email protected]>2019-11-14 21:54:34 +0000
committerRapptz <[email protected]>2019-11-15 04:25:38 -0500
commitbf9b9c5879b4e534cf205cf44ab1248e6cc37c24 (patch)
tree44c4c62a1970953eed242a62487de2bcf0856d6f /discord/webhook.py
parentReturn invites as https, various URL normalization (diff)
downloaddiscord.py-bf9b9c5879b4e534cf205cf44ab1248e6cc37c24.tar.xz
discord.py-bf9b9c5879b4e534cf205cf44ab1248e6cc37c24.zip
Adjust BASE urls to have no trailing slash (consistency)
Diffstat (limited to 'discord/webhook.py')
-rw-r--r--discord/webhook.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/webhook.py b/discord/webhook.py
index 9ebc58d1..44ca38fd 100644
--- a/discord/webhook.py
+++ b/discord/webhook.py
@@ -586,7 +586,7 @@ class Webhook:
"""
if self.avatar is None:
# Default is always blurple apparently
- return Asset(self._state, 'embed/avatars/0.png')
+ return Asset(self._state, '/embed/avatars/0.png')
if not utils.valid_icon_size(size):
raise InvalidArgument("size must be a power of 2 between 16 and 1024")
@@ -596,7 +596,7 @@ class Webhook:
if format not in ('png', 'jpg', 'jpeg'):
raise InvalidArgument("format must be one of 'png', 'jpg', or 'jpeg'.")
- url = 'avatars/{0.id}/{0.avatar}.{1}?size={2}'.format(self, format, size)
+ url = '/avatars/{0.id}/{0.avatar}.{1}?size={2}'.format(self, format, size)
return Asset(self._state, url)
def delete(self):