Skip to content

Commit

Permalink
Slight reorganization for consistency sake
Browse files Browse the repository at this point in the history
  • Loading branch information
TapGhoul committed Sep 11, 2024
1 parent 39ffbe2 commit 23099cd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/reply/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ impl CreateReply {
if let Some(components) = components {
builder = builder.components(components);
}
if let Some(ephemeral) = ephemeral {
builder = builder.ephemeral(ephemeral);
}
if let Some(embeds) = embeds {
builder = builder.embeds(embeds);
}
if let Some(ephemeral) = ephemeral {
builder = builder.ephemeral(ephemeral);
}

builder.add_files(attachments)
}
Expand All @@ -147,12 +147,12 @@ impl CreateReply {
if let Some(content) = content {
builder = builder.content(content);
}
if let Some(embeds) = embeds {
builder = builder.embeds(embeds);
}
if let Some(components) = components {
builder = builder.components(components)
}
if let Some(embeds) = embeds {
builder = builder.embeds(embeds);
}
if let Some(allowed_mentions) = allowed_mentions {
builder = builder.allowed_mentions(allowed_mentions);
}
Expand Down Expand Up @@ -185,12 +185,12 @@ impl CreateReply {
if let Some(components) = components {
builder = builder.components(components);
}
if let Some(allowed_mentions) = allowed_mentions {
builder = builder.allowed_mentions(allowed_mentions);
}
if let Some(embeds) = embeds {
builder = builder.embeds(embeds);
}
if let Some(allowed_mentions) = allowed_mentions {
builder = builder.allowed_mentions(allowed_mentions);
}

builder
}
Expand Down

0 comments on commit 23099cd

Please sign in to comment.