Use CDN URL for assets.

This commit is contained in:
Rapptz
2017-01-09 19:36:48 -05:00
parent fdd835e8f1
commit f0fb91c35d
3 changed files with 9 additions and 15 deletions

View File

@@ -266,7 +266,7 @@ class Server(Hashable):
"""Returns the URL version of the server's icon. Returns an empty string if it has no icon."""
if self.icon is None:
return ''
return 'https://discordapp.com/api/guilds/{0.id}/icons/{0.icon}.jpg'.format(self)
return 'https://cdn.discordapp.com/icons/{0.id}/{0.icon}.jpg'.format(self)
@property
def splash_url(self):