My bot is sending an embed which should have an image in it.
Previously, i added the file to the messagebuilder with .WithFile and used the attachment:// scheme to access it in the embed.
It used to work; the file was not shown as attachment of the message but embedded in the embed.
Since about one week (i haven't made any changes to my code), the file is embedded in the message (outside the embed), and the embed has no image.
I updated D#+ and adapted the code to use AddFile, so it's like this now:
response.AddFile(File.OpenRead(path));
embed.ImageUrl = "attachment://" + Path.GetFileName(path);
However that didn't fix the embed.
Am i missing something?