diff options
| author | Devon R <[email protected]> | 2019-11-14 21:37:23 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-11-15 04:25:38 -0500 |
| commit | f5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53 (patch) | |
| tree | b0df1fc8f2e5780048add68ea03905f66cf58327 /discord/emoji.py | |
| parent | Add view_guild_insights permission (diff) | |
| download | discord.py-f5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53.tar.xz discord.py-f5ebf42e1f2c4e9d3ffe1a9edd59a659ff483c53.zip | |
Return invites as https, various URL normalization
Diffstat (limited to 'discord/emoji.py')
| -rw-r--r-- | discord/emoji.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/emoji.py b/discord/emoji.py index 7d4ab658..fcf11250 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -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 |