mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-16 05:10:34 +00:00
add: GetEssenceMsg
This commit is contained in:
parent
7c41da1cb9
commit
1ad6ea4049
19
src/onebot11/action/group/GetGroupEssence.ts
Normal file
19
src/onebot11/action/group/GetGroupEssence.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { getGroup } from '@/core/data';
|
||||||
|
import { OB11Group } from '../../types';
|
||||||
|
import { OB11Constructor } from '../../constructor';
|
||||||
|
import BaseAction from '../BaseAction';
|
||||||
|
import { ActionName } from '../types';
|
||||||
|
import { NTQQMsgApi } from '@/core/apis/msg';
|
||||||
|
|
||||||
|
interface PayloadType {
|
||||||
|
group_id: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export class GetGroupEssence extends BaseAction<PayloadType, null> {
|
||||||
|
actionName = ActionName.GoCQHTTP_GetEssenceMsg;
|
||||||
|
|
||||||
|
protected async _handle(payload: PayloadType) {
|
||||||
|
//await NTQQMsgApi.GetEssenceMsg()
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -56,6 +56,7 @@ export enum ActionName {
|
|||||||
GetRobotUinRange = 'get_robot_uin_range',
|
GetRobotUinRange = 'get_robot_uin_range',
|
||||||
SetOnlineStatus = 'set_online_status',
|
SetOnlineStatus = 'set_online_status',
|
||||||
// 以下为go-cqhttp api
|
// 以下为go-cqhttp api
|
||||||
|
GoCQHTTP_GetEssenceMsg='get_essence_msg_list',
|
||||||
GoCQHTTP_SetGroupNotice = '_send_group_notice',
|
GoCQHTTP_SetGroupNotice = '_send_group_notice',
|
||||||
GoCQHTTP_GetGroupNotice = '_get_group_notice',
|
GoCQHTTP_GetGroupNotice = '_get_group_notice',
|
||||||
GoCQHTTP_SendForwardMsg = 'send_forward_msg',
|
GoCQHTTP_SendForwardMsg = 'send_forward_msg',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user