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] =?UTF-8?q?=E4=BF=AE=E5=A4=8D<get=5Fgroup=5Fat=5Fall=5Frem?=
 =?UTF-8?q?ain>=E6=8E=A5=E5=8F=A3=E6=80=BB=E6=98=AF=E8=BF=94=E5=9B=9E<Erro?=
 =?UTF-8?q?r:=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,