diff options
| author | Rapptz <[email protected]> | 2017-01-09 19:36:48 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-09 19:36:48 -0500 |
| commit | f0fb91c35d79e8cf70bd32c061e49ed34d268f19 (patch) | |
| tree | 687e885a51e30a3b4c2b42e348b9ece7a23e02ad /discord/user.py | |
| parent | Backport rate limit header implementation from rewrite. (diff) | |
| download | discord.py-f0fb91c35d79e8cf70bd32c061e49ed34d268f19.tar.xz discord.py-f0fb91c35d79e8cf70bd32c061e49ed34d268f19.zip | |
Use CDN URL for assets.
Diffstat (limited to 'discord/user.py')
| -rw-r--r-- | discord/user.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/user.py b/discord/user.py index 37f0cc51..c51955bb 100644 --- a/discord/user.py +++ b/discord/user.py @@ -86,7 +86,7 @@ class User: if self.avatar is None: return '' - url = 'https://images.discordapp.net/avatars/{0.id}/{0.avatar}.{1}?size=1024' + url = 'https://cdn.discordapp.com/avatars/{0.id}/{0.avatar}.{1}?size=1024' if self.avatar.startswith('a_'): return url.format(self, 'gif') else: @@ -100,7 +100,7 @@ class User: @property def default_avatar_url(self): """Returns a URL for a user's default avatar.""" - return 'https://discordapp.com/assets/{0.url}.png'.format(self.default_avatar) + return 'https://cdn.discordapp.com/embed/avatars/{}.png'.format(self.default_avatar.value) @property def mention(self): |