discord-api-docs
discord-api-docs copied to clipboard
Imgur gifs embed when sent as links to a channel, but not as webhook/bot embeds.
Description
If you send an Imgur gif link as standard message content, either as a gallery link like this https://imgur.com/gallery/PiLU8VQ
or as a direct link like this: https://i.imgur.com/UrxwiQr.mp4
or this https://i.imgur.com/UrxwiQr.gif
. It will correctly embed as a gif.
However, if you send this link as the image field of an embed, it only embeds the thumbnail, not the actual gif/video.
Steps to Reproduce
Send a message with this data:
{ "content": "https://i.imgur.com/UrxwiQr.gif", "embeds": null, "attachments": [] }
Observe that it correctly embeds as a gif.
Then, send a message with this data:
{ "content": null, "embeds": [ { "title": "Broken", "color": null, "image": { "url": "https://i.imgur.com/UrxwiQr.gif" } } ], "attachments": [] }
Observe that the embed shows the GIF icon in the top right of the image, however, it does not animate and is instead only the thumbnail.
Expected Behavior
Imgur gifs in the image
field of an embed correctly embed as whole gifs, instead of just their thumbnail.
Current Behavior
Imgur gifs in the image
field of an embed only show the thumbnail of the gif.
Screenshots/Videos
https://imgur.com/a/xMPtdy6
Client and System Information
Tested and found occurring on Firefox, Android and Linux. Not tested in other contexts.
probably related to https://discordstatus.com/incidents/sxkj5wqf4q8x
probably related to https://discordstatus.com/incidents/sxkj5wqf4q8x
Hmmm I did encounter that issue yesterday, although it is resolved now. Maybe something with caching is causing this issue.
it isn't marked as resolved
it isn't marked as resolved
Oops that's true actually, I just assumed it had been because link embeds were working for me. Hopefully when it's marked as resolved this issue will be fixed too.
The issue was marked as resolved an hour ago, and this issue still occurs.
This behavior is working as intended. Image URLs specified in embeds are not analyzed like urls found within message content. When an Image URL is specified, Discord will only retrieve dimensions of the image and carry onwards. If you want Discord to embed the video associated with an Imgur URL, you will need to specify it in the message content.