From 95a00d7f3516b74fe8fc7c1ba6adcd477c9e583a Mon Sep 17 00:00:00 2001
From: Nepenthe <Ttjonne@outlook.com>
Date: Sun, 27 Oct 2024 22:04:48 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D<get=5Fgroup=5Fat=5Fall?=
 =?UTF-8?q?=5Fremain>=E6=8E=A5=E5=8F=A3=E6=80=BB=E6=98=AF=E8=BF=94?=
 =?UTF-8?q?=E5=9B=9E<Error:=20atInfo=20not=20found>?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts b/src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts
index 98ca6749..be9f2fb5 100644
--- a/src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts
+++ b/src/onebot/action/go-cqhttp/GetGroupAtAllRemain.ts
@@ -17,8 +17,8 @@ export class GoCQHTTPGetGroupAtAllRemain extends BaseAction<Payload, any> {
 
     async _handle(payload: Payload) {
         const ret = await this.core.apis.GroupApi.getGroupRemainAtTimes(payload.group_id.toString());
-        if (!ret.atInfo || ret.result !== 0) {
-            throw new Error('atInfo not found');
+        if (ret.errCode !== 0) {
+            throw new Error('Not in the group');
         }
         const data = {
             can_at_all: ret.atInfo.canAtAll,

From 4825a0e341e6d854a6f88979743746e58e6170c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?=
 <nanaeonn@outlook.com>
Date: Sun, 27 Oct 2024 22:07:11 +0800
Subject: [PATCH 2/2] fix: type Error

---
 src/core/services/NodeIKernelGroupService.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/services/NodeIKernelGroupService.ts b/src/core/services/NodeIKernelGroupService.ts
index 49e77849..eff7a1e1 100644
--- a/src/core/services/NodeIKernelGroupService.ts
+++ b/src/core/services/NodeIKernelGroupService.ts
@@ -233,7 +233,7 @@ export interface NodeIKernelGroupService {
     getGroupStatisticInfo(groupCode: string): unknown;
 
     getGroupRemainAtTimes(groupCode: string): Promise<Omit<GeneralCallResult, 'result'> & {
-        errMsg: string,
+        errCode: number,
         atInfo: {
             canAtAll: boolean
             RemainAtAllCountForUin: number