diff options
| author | Rapptz <[email protected]> | 2017-01-09 03:35:51 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-09 03:35:51 -0500 |
| commit | 63604e05663b4e5af52a64d35290cda303e7c37c (patch) | |
| tree | ed6292b20658832d9fd6d02d280aaf66c048c1d6 /discord/user.py | |
| parent | Fix typo in Guild.invites (diff) | |
| download | discord.py-63604e05663b4e5af52a64d35290cda303e7c37c.tar.xz discord.py-63604e05663b4e5af52a64d35290cda303e7c37c.zip | |
Use CDN URL for default avatars.
Diffstat (limited to 'discord/user.py')
| -rw-r--r-- | discord/user.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/user.py b/discord/user.py index e9a19935..0a959438 100644 --- a/discord/user.py +++ b/discord/user.py @@ -139,7 +139,7 @@ class User(discord.abc.Messageable): @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): |