Images not loading in embed
So if you are trying to setImage() a image from a discord chat, it will just not load it, but if you are trying to load it from a different URL ( domain ) it will work
14 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by staffshow your code
so basically in the first image im using a custom url ( from a image uploader website )
but in my code, im just forwarding the image that the user is sending in the embed message
and yes, i extracted the direct link of the image
and it ends in its format
like
image.png
link example "https://cdn.discordapp.com/attachments/1200142807969583144/1200157639481491686/arthur.PNG"i dont see any setImage in that embedbuilder
oh sorry, i removed it i think
let me readdit
its not showing either
but at least i added something in the description lol
just adding your image in the description wont show it
you have to use .setImage()
`
sorry, i forgot to resend
yes, i've added
as i said it seems to not work for the images with the discord domain, for other domains its working
discord images now expire after x amount of times
however, this is not related to djs as djs does not handle how embeds display images
yes but somehow they removed the display of them from the discord domain
and i think its related, i thought it was something in my code at first, then i tried an image from other domain and it worked
again, djs does not control how embeds display images
#useful-servers ddevs
although
this url has query params
i filtred it out
and i removed the params
its just the direct image
its fine, i will move over