#Editing in a local picture to embed

1 messages · Page 1 of 1 (latest)

lyric spoke
#

Order of actions:

  1. Send a message in a channel using .SendMessageAsync (without a picture in the embed)
  2. After someone triggers a modal, a picture is generated.
  3. Looking to edit that picture into the first message embed sent

I am aware I need to use .SendFileAsync, but since I don't actually send a file the first time I send the message, but later want to edit it in, how would I be able to do that?

Thanks 🙂

leaden lynx
#

You can just get the message =>

ModifyAsync(x =>
{
     x.Attachments = new [] {new FileAttachment(path, "Namee123.jpeg")});
    x.Embeds = .........WithImageUrl("attachment://Namee123.jpeg");
#

Something like this
Might need to change some things since i wrote this on phone and there could be mistakes

lyric spoke
#

Basic knowledge over here, so sorry if it's a dumb question 😛 Trying to learn 😊

leaden lynx
#

I mean
You need to upload an image so it shows up

lyric spoke
#

So that is what the x.Attachments = new [] {new FileAttachment(path, "Namee123.jpeg")}); part does?

leaden lynx
#

Yup