aboutsummaryrefslogtreecommitdiff
path: root/discord/server.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-03-25 18:56:49 -0400
committerRapptz <[email protected]>2016-03-25 19:13:06 -0400
commit0ad1cb95a3773cd80039e5ca846c1b19ac0e8b1a (patch)
tree80cf0b3db620ef981e2cee7f53701721ac8f790b /discord/server.py
parentAdd boolean option to specify if VoiceClient.play_audio should encode. (diff)
downloaddiscord.py-0ad1cb95a3773cd80039e5ca846c1b19ac0e8b1a.tar.xz
discord.py-0ad1cb95a3773cd80039e5ca846c1b19ac0e8b1a.zip
Server.icon_url uses API url instead of the CDN.
Diffstat (limited to 'discord/server.py')
-rw-r--r--discord/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/server.py b/discord/server.py
index 3d1a1b51..e087be20 100644
--- a/discord/server.py
+++ b/discord/server.py
@@ -212,7 +212,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://cdn.discordapp.com/icons/{0.id}/{0.icon}.jpg'.format(self)
+ return 'https://discordapp.com/api/guilds/{0.id}/icons/{0.icon}.jpg'.format(self)
@property
def member_count(self):