diff options
| author | khazhyk <[email protected]> | 2018-07-15 21:48:50 -0700 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-07-20 04:14:21 -0400 |
| commit | 2c7a855e115b625e29797fd3c8612fc8de1b1b07 (patch) | |
| tree | b30fd2cda19c6a08482c813ced4252cb84fa3f70 | |
| parent | [commands] raise ConversionError on Converter error (diff) | |
| download | discord.py-2c7a855e115b625e29797fd3c8612fc8de1b1b07.tar.xz discord.py-2c7a855e115b625e29797fd3c8612fc8de1b1b07.zip | |
Revert "Ensure gif avatar urls end in `.gif`"
This reverts commit 456390f417e63126b08ac52fa8ee49ca68cefed8.
This commit isn't needed anymore - the image proxy now properly
handles gifs that do not end in .gif
| -rw-r--r-- | discord/user.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/discord/user.py b/discord/user.py index a1f3704d..8e87520e 100644 --- a/discord/user.py +++ b/discord/user.py @@ -155,10 +155,7 @@ class BaseUser(_BaseUser): else: format = static_format - # Discord has trouble animating gifs if the url does not end in `.gif` - gif_fix = '&_=.gif' if format == 'gif' else '' - - return 'https://cdn.discordapp.com/avatars/{0.id}/{0.avatar}.{1}?size={2}{3}'.format(self, format, size, gif_fix) + return 'https://cdn.discordapp.com/avatars/{0.id}/{0.avatar}.{1}?size={2}'.format(self, format, size) @property def default_avatar(self): |