Skip to content

Commit

Permalink
fix: #667
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Dec 29, 2024
1 parent 5f45445 commit 8248011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/onebot/api/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,16 @@ 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;
}
}

async parseGrayTipElement(msg: RawMessage, grayTipElement: GrayTipElement) {
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') {
Expand Down

0 comments on commit 8248011

Please sign in to comment.