Idea: use UpdateAsync() to remove an embed from a message.
Here's my code that sends the attachment:
await interaction.UpdateAsync(x =>
{
x.Embed = null;
x.Attachments = new[] { new FileAttachment(path: "VerdantRecords.png", fileName: "VerdantRecords.png") };
x.Components = // Other working stuff
And here's the code that removes the attachment:
await interaction.UpdateAsync(x =>
{
x.Embed = // Other working stuff
x.Attachments = null;
x.Components = // Other working stuff
});
The attachment is sent just fine, but when setting x.Attachments to null, it... times out? Errors? Unsure. I tried using a try and catch statement, but there's no thrown exception.
Am I doing something wrong? Am I crazy? Usually setting the Embed, Content, etc., to null works perfectly. I have tried using ModifyOriginalResponseAync as well.



