fix: Member Kick Event

This commit is contained in:
手瓜一十雪 2024-05-14 22:48:43 +08:00
parent 227c4c422c
commit b8ebededd8

View File

@ -6,6 +6,7 @@ import {
ChatType,
FriendRequest,
Group,
GroupMember,
GroupMemberRole,
GroupNotify,
GroupNotifyTypes,
@ -131,6 +132,17 @@ export class NapCatOnebot11 {
//console.log('ob11 onGroupNotifiesUpdated', notifies[0]);
this.postGroupNotifies(notifies).then().catch(e => logError('postGroupNotifies error: ', e));
};
groupListener.onMemberInfoChange = (groupCode: string, changeType: number, members: Map<string, GroupMember>) => {
// 如果自身是非管理员也许要从这里获取Delete 成员变动
// for (const member of members.values()) {
// if (member?.isDelete) {
// const groupDecreaseEvent = new OB11GroupDecreaseEvent(parseInt(groupCode), parseInt(member.uin), 0, 'leave');// 不知道怎么出去的
// postOB11Event(groupDecreaseEvent, true);
// }
// }
}
groupListener.onJoinGroupNotify = (...notify) => {
// console.log('ob11 onJoinGroupNotify', notify);
};