Cannot use GIF url as an embed's image.

I'm trying to use the following URL as the GIF that gets displayed at the bottom of an embed: https://lh3.googleusercontent.com/H-k7bzKQxtR9zYqm9kShADO2DdyOcKypp1bB4xjqgC9Zaa3P3GaXWOf35zfZDD0JLcoEuT51amB1KKusmHsTQZot4bztF-4WLbEf but it isn't loading for some reason. At first I thought it was because the URL did not end with an extension (.gif) but I've since found out that similar extensionless links work for images but not for GIFs. I've also tried loading the image into a Buffer and then attaching it to the message and using it in the image.url property but that also didn't work. Any help is appreciated!
7 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Teixeira
TeixeiraOP3y ago
Node version: 16.16.0 d.js version: 14.0.3
souji
souji3y ago
well, it IS the url you need a direct image URL to the file they do indeed need to end in .gif if you attach the file you have to properly name and reference it and upload it alongside the embed in the message, see below
d.js docs
d.js docs3y ago
guide Popular Topics: Attaching images read more
Teixeira
TeixeiraOP3y ago
Yep I just double checked and I had done everything correctly, when I tried that way it didn't even show the blank square, the embed would have no image at all
souji
souji3y ago
what's the url you used then, what's the code
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server