mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-20 16:00:29 +00:00
Server.icon_url uses API url instead of the CDN.
This commit is contained in:
parent
827ca1e5a2
commit
0ad1cb95a3
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user