aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-09 03:43:51 -0500
committerRapptz <[email protected]>2017-01-09 03:43:51 -0500
commitb09f25293ba8cfbba82f64f32a3944c0cb605f88 (patch)
tree609927eaa6227ad765134d048c93010e707785f5
parentReturn default avatar URL if an avatar is not given for User.avatar_url (diff)
downloaddiscord.py-b09f25293ba8cfbba82f64f32a3944c0cb605f88.tar.xz
discord.py-b09f25293ba8cfbba82f64f32a3944c0cb605f88.zip
Use CDN URL for Guild.icon_url.
-rw-r--r--discord/guild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py
index d58c3276..6041543a 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -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."""
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):