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); }