diff options
| author | Devon R <[email protected]> | 2019-11-14 21:54:34 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-11-15 04:25:38 -0500 |
| commit | bf9b9c5879b4e534cf205cf44ab1248e6cc37c24 (patch) | |
| tree | 44c4c62a1970953eed242a62487de2bcf0856d6f /discord/emoji.py | |
| parent | Return invites as https, various URL normalization (diff) | |
| download | discord.py-bf9b9c5879b4e534cf205cf44ab1248e6cc37c24.tar.xz discord.py-bf9b9c5879b4e534cf205cf44ab1248e6cc37c24.zip | |
Adjust BASE urls to have no trailing slash (consistency)
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 fcf11250..2429e0b2 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 = "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 = "emojis/{0.id}.{1}".format(self, _format) + url = "/emojis/{0.id}.{1}".format(self, _format) return Asset(self._state, url) @property |