mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 07:50:25 +00:00
update: optimize entity factory (formerly converter.ts)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { OB11Constructor } from '@/onebot/helper/converter';
|
||||
import { OB11Entities } from '@/onebot/helper/entities';
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
|
||||
@@ -7,7 +7,7 @@ export class GetFriendWithCategory extends BaseAction<void, any> {
|
||||
async _handle(payload: void) {
|
||||
return (await this.core.apis.FriendApi.getBuddyV2ExWithCate(true)).map(category => ({
|
||||
...category,
|
||||
buddyList: OB11Constructor.friendsV2(category.buddyList),
|
||||
buddyList: OB11Entities.friendsV2(category.buddyList),
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user