LLOneBot/src/onebot11/actions/GetFriendList.ts
2024-02-12 21:54:58 +08:00

16 lines
443 B
TypeScript

import { OB11User } from '../types';
import { OB11Constructor } from "../constructor";
import { friends } from "../../common/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(friends);
}
}
export default GetFriendList