Skip to content

Commit

Permalink
fix fuckup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbt365 committed Nov 13, 2024
1 parent 0e3c231 commit bbd05f3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/reply/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ impl CreateReply {
components,
ephemeral: _, // can't edit ephemerality in retrospect
allowed_mentions,
poll,
// cannot edit polls.
poll: _,
reply: _,
__non_exhaustive: (),
} = self;
Expand All @@ -197,9 +198,6 @@ impl CreateReply {
for attachment in attachments {
builder = builder.new_attachment(attachment);
}
if let Some(poll) = poll {
builder = builder.poll(poll);
}

builder.embeds(embeds)
}
Expand All @@ -213,7 +211,8 @@ impl CreateReply {
components,
ephemeral: _, // not supported in prefix
allowed_mentions,
poll,
// cannot edit polls.
poll: _,
reply: _, // can't edit reference message afterwards
__non_exhaustive: (),
} = self;
Expand All @@ -232,9 +231,6 @@ impl CreateReply {
if let Some(components) = components {
builder = builder.components(components);
}
if let Some(poll) = poll {
builder = builder.poll(poll);
}

builder.embeds(embeds).attachments(attachments_builder)
}
Expand Down

0 comments on commit bbd05f3

Please sign in to comment.