From 0ad1cb95a3773cd80039e5ca846c1b19ac0e8b1a Mon Sep 17 00:00:00 2001 From: Rapptz Date: Fri, 25 Mar 2016 18:56:49 -0400 Subject: [PATCH] Server.icon_url uses API url instead of the CDN. --- discord/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/server.py b/discord/server.py index 3d1a1b516..e087be203 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):