This is a one-frame gif:

Discord detects this, converts to a png, and uses one static slot in the guild. However, mime_type_for_image returns image/gif, so animated is set to True in the database. Since we need the image type in order to pick a guild to upload to, probably the best solution is to detect single-frame gifs client side before uploading. Or we could just convert them to fake two frame gifs as Emote Manager now does.
This is a one-frame gif:

Discord detects this, converts to a png, and uses one static slot in the guild. However, mime_type_for_image returns image/gif, so
animatedis set to True in the database. Since we need the image type in order to pick a guild to upload to, probably the best solution is to detect single-frame gifs client side before uploading. Or we could just convert them to fake two frame gifs as Emote Manager now does.