Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

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

Description

@popeyaho001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions