From eb93dd500581c2a1186a1bc0cbdd82fc1513f69a Mon Sep 17 00:00:00 2001 From: linyuchen Date: Tue, 30 Apr 2024 18:49:55 +0800 Subject: [PATCH] fix: no_cache param of api get_group_list --- src/onebot11/action/group/GetGroupList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot11/action/group/GetGroupList.ts b/src/onebot11/action/group/GetGroupList.ts index 420a2cef..676eb5eb 100644 --- a/src/onebot11/action/group/GetGroupList.ts +++ b/src/onebot11/action/group/GetGroupList.ts @@ -16,7 +16,7 @@ class GetGroupList extends BaseAction { protected async _handle(payload: Payload) { let groupList: Group[] = Array.from(groups.values()); - if (groupList.length === 0 || payload.no_cache === true) { + if (groupList.length === 0 || payload?.no_cache === true) { groupList = await NTQQGroupApi.getGroups(true); // log('get groups', groups); }