mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
feat: raw api add
This commit is contained in:
@@ -72,6 +72,7 @@ import { CreateCollection } from './extends/CreateCollection';
|
||||
import { SetLongNick } from './extends/SetLongNick';
|
||||
import DelEssenceMsg from './group/DelEssenceMsg';
|
||||
import SetEssenceMsg from './group/SetEssenceMsg';
|
||||
import GetRecentContact from './user/GetRecentContact';
|
||||
|
||||
export const actionHandlers = [
|
||||
new RebootNormal(),
|
||||
@@ -151,7 +152,8 @@ export const actionHandlers = [
|
||||
new GoCQHTTPHandleQuickAction(),
|
||||
new GetGroupSystemMsg(),
|
||||
new DelEssenceMsg(),
|
||||
new SetEssenceMsg()
|
||||
new SetEssenceMsg(),
|
||||
new GetRecentContact()
|
||||
];
|
||||
|
||||
function initActionMap() {
|
||||
|
||||
@@ -95,5 +95,6 @@ export enum ActionName {
|
||||
GetCollectionList = 'get_collection_list',
|
||||
SetLongNick = 'set_self_longnick',
|
||||
SetEssenceMsg = "set_essence_msg",
|
||||
DelEssenceMsg = "delete_essence_msg"
|
||||
DelEssenceMsg = "delete_essence_msg",
|
||||
GetRecentContact = "get_recent_contact"
|
||||
}
|
||||
|
||||
11
src/onebot11/action/user/GetRecentContact.ts
Normal file
11
src/onebot11/action/user/GetRecentContact.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
import BaseAction from '../BaseAction';
|
||||
import { ActionName } from '../types';
|
||||
import { NTQQUserApi } from '@/core';
|
||||
|
||||
export default class GetRecentContact extends BaseAction<void, any> {
|
||||
actionName = ActionName.GetRecentContact;
|
||||
protected async _handle(payload: void) {
|
||||
return await NTQQUserApi.getRecentContactList()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user