From 8248011a12cbf32c575cd4cc4329ef10cf072161 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: Sun, 29 Dec 2024 11:54:09 +0800 Subject: [PATCH] fix: #667 --- src/onebot/api/group.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/onebot/api/group.ts b/src/onebot/api/group.ts index 5cd01da0..fd58456d 100644 --- a/src/onebot/api/group.ts +++ b/src/onebot/api/group.ts @@ -216,6 +216,9 @@ export class OneBotGroupApi { parseInt(await this.core.apis.UserApi.getUinByUidV2(element.memberUid)), element.groupName, ); + } else if (element.type === TipGroupElementType.KSHUTUP) { + let event = await this.parseGroupBanEvent(msg.peerUid, elementWrapper); + return event; } } @@ -223,7 +226,6 @@ export class OneBotGroupApi { if (grayTipElement.subElementType === NTGrayTipElementSubTypeV2.GRAYTIP_ELEMENT_SUBTYPE_GROUP) { // 解析群组事件 由sysmsg解析 return await this.parseGroupElement(msg, grayTipElement.groupElement, grayTipElement); - } else if (grayTipElement.subElementType === NTGrayTipElementSubTypeV2.GRAYTIP_ELEMENT_SUBTYPE_XMLMSG) { // 筛选出表情回应 事件 if (grayTipElement.xmlElement?.templId === '10382') {