Browse Source

Server.icon_url uses API url instead of the CDN.

pull/132/merge
Rapptz 9 years ago
parent
commit
0ad1cb95a3
  1. 2
      discord/server.py

2
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.""" """Returns the URL version of the server'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://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 @property
def member_count(self): def member_count(self):

Loading…
Cancel
Save