From d7fb850b4a2aeddfb8ad2ee68524ec1b187198d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 22 Aug 2024 14:35:48 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=B8=A2=E5=BC=83=E7=A9=BA=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/action/msg/SendMsg/create-send-elements.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot/action/msg/SendMsg/create-send-elements.ts b/src/onebot/action/msg/SendMsg/create-send-elements.ts index 0b05c70e..8732d589 100644 --- a/src/onebot/action/msg/SendMsg/create-send-elements.ts +++ b/src/onebot/action/msg/SendMsg/create-send-elements.ts @@ -235,7 +235,7 @@ export default async function createSendElements( callResultList.push(callResult); } const ret = await Promise.all(callResultList); - const sendElements: SendMessageElement[] = ret.filter(ele => ele) as SendMessageElement[]; + const sendElements: SendMessageElement[] = ret.filter(ele => !!ele); return { sendElements, deleteAfterSentFiles }; }