How to send again a gif recovered from a previous message ?

A question guys, do you know why discord gif integration does work only once ? 'cause when we send a gif link from tenor url, Discord converts it into an "gifv" embed. But if I recover it from a bot and send the embed inn a new message, it only create an embed with a picture inside of the gif, and not the gif itself.
17 Replies
souji
souji3y ago
discord only renders gifs in embeds if they end in .gif accordingly you'd either need to re-upload it to the cdn, or retrieve the direct image URL for tenor that is https://c.tenor.com/LSI81MmB6gEAAAAd/cat-fear.gif vs. the share link https://tenor.com/view/cat-fear-kitty-cat-fear-kitty-fear-gif-22560244
Eccléria
EcclériaOP3y ago
I'm unsure of that, because I already tried to add the .gif to the url, without any change
Eccléria
EcclériaOP3y ago
Oh, you mean that I should use the first link you presented ?
souji
souji3y ago
yes, just slapping the file ending there won't make it a direct image link does in the browser, because tenor redirects with a 302, apparently
Eccléria
EcclériaOP3y ago
And this link should be in the gifv embed data right ?
souji
souji3y ago
no idea what happens there
souji
souji3y ago
-ev msg.channel.messages.resolve("998886850070585344").embeds[0]
yuzu
yuzu3y ago
Embed {
data: {
video: {
width: 640,
url: 'https://media.tenor.com/LSI81MmB6gEAAAPo/cat-fear.mp4',
proxy_url: 'https://images-ext-1.discordapp.net/external/ZxKRTe0VVNQ5iuc6PNhYCAOTMClA1k3nw_iHig8739M/https/media.tenor.com/LSI81MmB6gEAAAPo/cat-fear.mp4',
height: 640
},
url: 'https://tenor.com/view/cat-fear-kitty-cat-fear-kitty-fear-gif-22560244',
type: 'gifv',
thumbnail: {
width: 640,
url: 'https://media.tenor.com/LSI81MmB6gEAAAAD/cat-fear.png',
proxy_url: 'https://images-ext-2.discordapp.net/external/E1VjsFulxcHSwH9G-eoywdesn__V6GaAl3Mt6dMy9v8/https/media.tenor.com/LSI81MmB6gEAAAAD/cat-fear.png',
height: 640
},
provider: { url: 'https://tenor.co', name: 'Tenor' }
}
}
Embed {
data: {
video: {
width: 640,
url: 'https://media.tenor.com/LSI81MmB6gEAAAPo/cat-fear.mp4',
proxy_url: 'https://images-ext-1.discordapp.net/external/ZxKRTe0VVNQ5iuc6PNhYCAOTMClA1k3nw_iHig8739M/https/media.tenor.com/LSI81MmB6gEAAAPo/cat-fear.mp4',
height: 640
},
url: 'https://tenor.com/view/cat-fear-kitty-cat-fear-kitty-fear-gif-22560244',
type: 'gifv',
thumbnail: {
width: 640,
url: 'https://media.tenor.com/LSI81MmB6gEAAAAD/cat-fear.png',
proxy_url: 'https://images-ext-2.discordapp.net/external/E1VjsFulxcHSwH9G-eoywdesn__V6GaAl3Mt6dMy9v8/https/media.tenor.com/LSI81MmB6gEAAAAD/cat-fear.png',
height: 640
},
provider: { url: 'https://tenor.co', name: 'Tenor' }
}
}
• d.js 14.0.1 • Type: object • time taken: 0.209724ms
souji
souji3y ago
interesting it's actually the png from the thumbnail, but with gif, lul
Eccléria
EcclériaOP3y ago
Yeah that's why i'm kinda confused x) Apparently the link in the embed is the second you shared Reflexiom
souji
souji3y ago
that is the one i posted, yes but the first link is an adaption of the thumbnail firL replace png with gif and that is the one that works, because it's a direct gif image link
Eccléria
EcclériaOP3y ago
And I do not really get why this embed object cannot be posted again as the original one
souji
souji3y ago
because bots are not allowed to use video embeds - including gifv
Eccléria
EcclériaOP3y ago
Cause the thumbnail is in .png ? oh
souji
souji3y ago
type: "rich" is the only one bots can use
Eccléria
EcclériaOP3y ago
So only gif url reposting and not the gifv embed. ok thanks

Did you find this page helpful?