Skip to content

Commit

Permalink
Fix /base64 encode
Browse files Browse the repository at this point in the history
  • Loading branch information
jdh8 committed Sep 20, 2023
1 parent 9f9d865 commit 7ddc49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/base64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub async fn base64_encode(ctx: Context<'_>, message: serenity::Message) -> anyh
let _typing = ctx.serenity_context().http.start_typing(ctx.channel_id().0);
let attachments = message.attachments.into_iter().map(encode_attachment);
let attachments: Vec<_> = attachments.collect::<FuturesOrdered<_>>().collect().await;
let embeds = if message.content.is_empty() { vec![] } else { message.embeds };
let embeds = if message.content.is_empty() { message.embeds } else { vec![] };

ctx.send(|m| {
for c in attachments.into_iter().flatten() {
Expand Down

0 comments on commit 7ddc49c

Please sign in to comment.