aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook.py
diff options
context:
space:
mode:
authorDevon R <[email protected]>2019-11-14 21:37:23 +0000
committerRapptz <[email protected]>2019-11-15 04:25:38 -0500
commitf5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53 (patch)
treeb0df1fc8f2e5780048add68ea03905f66cf58327 /discord/webhook.py
parentAdd view_guild_insights permission (diff)
downloaddiscord.py-f5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53.tar.xz
discord.py-f5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53.zip
Return invites as https, various URL normalization
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 f717108a..9ebc58d1 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, 'https://cdn.discordapp.com/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 = 'https://cdn.discordapp.com/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):