From b631e6f8a29195390d30e93f1c72763b9fb16875 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: Fri, 20 Dec 2024 19:44:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E7=B2=BE=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot/index.ts b/src/onebot/index.ts index 4da66848..d4ff757f 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -310,7 +310,7 @@ export class NapCatOneBot11Adapter { guildId: '' }; const msg = (await this.core.apis.MsgApi.queryMsgsWithFilterExWithSeq(peer, msgSeq)).msgList.find(e => e.msgType == NTMsgType.KMSGTYPEGRAYTIPS); - const element = msg?.elements[0]; + const element = msg?.elements.find(e => !!e.grayTipElement?.revokeElement); if (msg && element) { const recallEvent = await this.emitRecallMsg(msg, element); try {