Embed with multiple Images
Qjuh once said it's possible to have multiple images in the same Embed, but I haven't been successful in re-producing this, anyone know the right approach?
https://discord.com/channels/222078108977594368/874431116533178459/1051058892488069150
From a Google, there's a result for using
setURL
and setImage
which apparently works, does it not with provided images?
https://stackoverflow.com/questions/57182398/is-it-possible-to-attach-multiple-images-in-a-embed12 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
The content of embeds should be the same except images
So this:
Yes
Nope, 2 embeds
The embeds must have the same url, only the first embed is displayed otherwise (to my limited testing).
I don't think this behavior is documented though and just a hack for twitter embeds.
I was wrong. You should set the same URL for every embeds. Then you can set images for them and set content only for the first.
https://discord.com/developers/docs/resources/channel#embed-object-embed-limits
Sounds like it's not possible for generated attachments then...?
It is possible
That's what I used (aka my limited testing)
ah har! Success, nice one
Thanks both, espically space, didn't think we could force a URL and it be fine 😄
Best case I found for doing this from single code, not writing the embed twice:
Then on the send:
(I did use
Array(2).fill(new EB())
but this resulted in a pointer problem so both embeds were actually the same so setImage
overworte the first one thus same image twice)