#Is it possible to insert images into embed without using SendFileAsync?

1 messages · Page 1 of 1 (latest)

jaunty shoal
#

Send the image in the same message as the embed, set it's name (like "image.png")
amd in the embed do
.WithImageUrl("attachments://image.png")

jaunty shoal
#

Code?

#

...

#

as i said

#

send the image in the same message

#

so SendFileAsync(embed: embedBuilder.Build(), attachment: new FileAttachment(...., "imageName.extension"))

#

ah oh

#

uhmm

#

oh bruh i can't read

#

well

#

sadly you can't embed files, only images & gifs

#

uhmm

#

if I understand you correctly

#

you want to send an embed with an image from your local storage?

#

ok

jaunty shoal
#

the uploaded image gets embeded into the embed
it won't show up as a separate attachment