Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Apr 28, 2024
1 parent 8661d09 commit 94e1a6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/onebot11/action/group/GetGroupMemberInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ActionName } from '../types';
import { NTQQUserApi } from '@/core/apis/user';
import { log, logDebug } from '@/common/utils/log';
import { isNull } from '../../../common/utils/helper';
import { WebApi } from '@/core/apis/webapi';


export interface PayloadType {
Expand Down
2 changes: 2 additions & 0 deletions src/onebot11/action/group/GetGroupMemberList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { OB11Constructor } from '../../constructor';
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { napCatCore } from '@/core';
import { WebApi } from '@/core/apis/webapi';

export interface PayloadType {
group_id: number
Expand All @@ -14,6 +15,7 @@ class GetGroupMemberList extends BaseAction<PayloadType, OB11GroupMember[]> {
actionName = ActionName.GetGroupMemberList;

protected async _handle(payload: PayloadType) {
console.log(await WebApi.getGroupMember(payload.group_id.toString()));
const group = await getGroup(payload.group_id.toString());
if (group) {
return OB11Constructor.groupMembers(group);
Expand Down

0 comments on commit 94e1a6f

Please sign in to comment.