diff --git a/src/onebot11/main.ts b/src/onebot11/main.ts index 298b2546..307edda3 100644 --- a/src/onebot11/main.ts +++ b/src/onebot11/main.ts @@ -298,6 +298,7 @@ export class NapCatOnebot11 { // if (notify.user2.uid) { // member2 = await getGroupMember(notify.group.groupCode, null, notify.user2.uid); // } + if ([GroupNotifyTypes.ADMIN_SET, GroupNotifyTypes.ADMIN_UNSET, GroupNotifyTypes.ADMIN_UNSET_OTHER].includes(notify.type)) { const member1 = await getGroupMember(notify.group.groupCode, notify.user1.uid); logDebug('有管理员变动通知');