diff --git a/src/reply/builder.rs b/src/reply/builder.rs index f48bbee89662..105ad45ad2d6 100644 --- a/src/reply/builder.rs +++ b/src/reply/builder.rs @@ -168,7 +168,7 @@ impl CreateReply { let crate::CreateReply { content, embeds, - attachments: _, // no support for attachment edits in serenity yet + attachments, components, ephemeral: _, // can't edit ephemerality in retrospect allowed_mentions, @@ -185,6 +185,9 @@ impl CreateReply { if let Some(allowed_mentions) = allowed_mentions { f = f.allowed_mentions(allowed_mentions); } + for attachment in attachments { + f = f.new_attachment(attachment); + } f }