mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
Revert "GIF support for avatars"
This reverts commit 9a5bb439ec9f6ab5d2fce7567452ca310736d688.
This commit is contained in:
parent
9a5bb439ec
commit
4a25011ee1
@ -71,7 +71,5 @@ def _get_mime_type_for_image(data):
|
|||||||
return 'image/png'
|
return 'image/png'
|
||||||
elif data.startswith(b'\xFF\xD8') and data.endswith(b'\xFF\xD9'):
|
elif data.startswith(b'\xFF\xD8') and data.endswith(b'\xFF\xD9'):
|
||||||
return 'image/jpeg'
|
return 'image/jpeg'
|
||||||
elif data.startswith(b'GIF89a') or data.startswith(b'GIF87a'):
|
|
||||||
return 'image/gif'
|
|
||||||
else:
|
else:
|
||||||
raise InvalidArgument('Unsupported image type given')
|
raise InvalidArgument('Unsupported image type given')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user