Use CDN URL for Guild.icon_url.

This commit is contained in:
Rapptz 2017-01-09 03:43:51 -05:00
parent 36a5925908
commit b09f25293b

View File

@ -294,7 +294,7 @@ class Guild(Hashable):
"""Returns the URL version of the guild's icon. Returns an empty string if it has no icon.""" """Returns the URL version of the guild's icon. Returns an empty string if it has no icon."""
if self.icon is None: if self.icon is None:
return '' 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 @property
def splash_url(self): def splash_url(self):