diff --git a/src/onebot11/action/group/GetGroupNotice.ts b/src/onebot11/action/group/GetGroupNotice.ts new file mode 100644 index 00000000..d36c1487 --- /dev/null +++ b/src/onebot11/action/group/GetGroupNotice.ts @@ -0,0 +1,16 @@ +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; + +interface PayloadType { + group_id: number +} + +export class GetGroupNotice extends BaseAction { + actionName = ActionName.GetGroupNotice; + + protected async _handle(payload: PayloadType) { + const group = payload.group_id.toString(); + // WebApi.getGrouptNotice(group); + return null; + } +} \ No newline at end of file diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index 7d70e4bb..c57eae6d 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -53,6 +53,7 @@ export enum ActionName { CleanCache = 'clean_cache', GetCookies = 'get_cookies', // 以下为扩展napcat扩展 + GetGroupNotice = 'get_group_notice', GetRobotUinRange = 'get_robot_uin_range', SetOnlineStatus = 'set_online_status', // 以下为go-cqhttp api