Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Could not create animated emoji by GIF files!? #442

Open
popeyaho001 opened this issue Jan 22, 2019 · 0 comments
Open

Could not create animated emoji by GIF files!? #442

popeyaho001 opened this issue Jan 22, 2019 · 0 comments

Comments

@popeyaho001
Copy link

popeyaho001 commented Jan 22, 2019

While I uploading the GIF file, got this error, PNG, and JPG still fine, any else got something this, I read doc discord python, they wrote only PNG and JPG are supported. In this project, including GIF, need someone to confirm that

File "/app/.heroku/python/lib/python3.6/site-packages/discord/client.py", line 2526, in create_custom_emoji
img = utils._bytes_to_base64_data(image)
File "/app/.heroku/python/lib/python3.6/site-packages/discord/utils.py", line 247, in _bytes_to_base64_data
mime = _get_mime_type_for_image(data)
File "/app/.heroku/python/lib/python3.6/site-packages/discord/utils.py", line 243, in _get_mime_type_for_image
raise InvalidArgument('Unsupported image type given')
discord.errors.InvalidArgument: Unsupported image type given

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant