Skip to content

Commit

Permalink
Implement attachment support in slash edit
Browse files Browse the repository at this point in the history
Fixes #157
  • Loading branch information
kangalio committed Aug 31, 2023
1 parent 4de6f52 commit 88c10cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/reply/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
}
Expand Down

0 comments on commit 88c10cc

Please sign in to comment.