From 7ddc49c9defe24e279584082960b977830942591 Mon Sep 17 00:00:00 2001 From: Chen-Pang He Date: Wed, 20 Sep 2023 16:07:36 +0800 Subject: [PATCH] Fix /base64 encode --- src/tools/base64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/base64.rs b/src/tools/base64.rs index ccd6e5c..e31d176 100644 --- a/src/tools/base64.rs +++ b/src/tools/base64.rs @@ -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::>().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() {