Return invites as https, various URL normalization

This commit is contained in:
Devon R authored and Rapptz committed 2019-11-15 04:25:38 -05:00
1 parent 46246a2844
commit f5ebf42e1f
8 files changed
+23 -18

No files matched your search

+2 -2
View File
@@ -122,7 +122,7 @@ class PartialEmoji:
return Asset(self._state)
_format = 'gif' if self.animated else 'png'
url = "https://cdn.discordapp.com/emojis/{0.id}.{1}".format(self, _format)
url = "emojis/{0.id}.{1}".format(self, _format)
return Asset(self._state, url)
class Emoji:
@@ -229,7 +229,7 @@ class Emoji:
def url(self):
""":class:`Asset`: Returns the asset of the emoji."""
_format = 'gif' if self.animated else 'png'
url = "https://cdn.discordapp.com/emojis/{0.id}.{1}".format(self, _format)
url = "emojis/{0.id}.{1}".format(self, _format)
return Asset(self._state, url)
@property