From 578f518aafc946b896ab6a61487d43a7b2298832 Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Fri, 30 Aug 2024 10:04:48 +0800 Subject: [PATCH] fix: others invited by others --- src/onebot/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/onebot/index.ts b/src/onebot/index.ts index 5c79293a..556af125 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -478,8 +478,8 @@ export class NapCatOneBot11Adapter { const groupInviteEvent = new OB11GroupRequestEvent( this.core, parseInt(notify.group.groupCode), - parseInt(await this.core.apis.UserApi.getUinByUidV2(notify.user2.uid)), - 'invite', + parseInt(await this.core.apis.UserApi.getUinByUidV2(notify.user1.uid)), + 'add', notify.postscript, flag, );