mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 21:10:23 +00:00
17 lines
460 B
TypeScript
17 lines
460 B
TypeScript
import { OB11User } from '../../types';
|
|
import { OB11Constructor } from '../../constructor';
|
|
import { friends } from '@/core/data';
|
|
import BaseAction from '../BaseAction';
|
|
import { ActionName } from '../types';
|
|
|
|
|
|
class GetFriendList extends BaseAction<null, OB11User[]> {
|
|
actionName = ActionName.GetFriendList;
|
|
|
|
protected async _handle(payload: null) {
|
|
return OB11Constructor.friends(Array.from(friends.values()));
|
|
}
|
|
}
|
|
|
|
export default GetFriendList;
|