From ff5a21cca512719a3581889918c3f0eaa55338c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 28 Apr 2024 18:21:36 +0800 Subject: [PATCH] fix --- src/onebot11/action/group/GetGroupNotice.ts | 16 ++++++++++++++++ src/onebot11/action/types.ts | 1 + 2 files changed, 17 insertions(+) create mode 100644 src/onebot11/action/group/GetGroupNotice.ts 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