mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: notify.type == GroupNotifyMsgType.INVITED_NEED_ADMINI_STRATOR_PASS
This commit is contained in:
@@ -473,6 +473,18 @@ export class NapCatOneBot11Adapter {
|
|||||||
);
|
);
|
||||||
this.networkManager.emitEvent(groupInviteEvent)
|
this.networkManager.emitEvent(groupInviteEvent)
|
||||||
.catch(e => this.context.logger.logError('处理邀请本人加群失败', e));
|
.catch(e => this.context.logger.logError('处理邀请本人加群失败', e));
|
||||||
|
} else if (notify.type == GroupNotifyMsgType.INVITED_NEED_ADMINI_STRATOR_PASS && notify.status == GroupNotifyMsgStatus.KUNHANDLE) {
|
||||||
|
this.context.logger.logDebug(`收到群员邀请加群通知:${notify}`);
|
||||||
|
const groupInviteEvent = new OB11GroupRequestEvent(
|
||||||
|
this.core,
|
||||||
|
parseInt(notify.group.groupCode),
|
||||||
|
parseInt(await this.core.apis.UserApi.getUinByUidV2(notify.user2.uid)),
|
||||||
|
'invite',
|
||||||
|
notify.postscript,
|
||||||
|
flag,
|
||||||
|
);
|
||||||
|
this.networkManager.emitEvent(groupInviteEvent)
|
||||||
|
.catch(e => this.context.logger.logError('处理邀请本人加群失败', e));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user