diff --git a/src/onebot11/action/group/SetGroupNotice.ts b/src/onebot11/action/group/SetGroupNotice.ts deleted file mode 100644 index a656a9b0..00000000 --- a/src/onebot11/action/group/SetGroupNotice.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { WebApi } from '@/core/apis/webapi'; -import BaseAction from '../BaseAction'; -import { ActionName } from '../types'; - -interface PayloadType { - group_id: number; - content: string; -} - -export class SetGroupNotice extends BaseAction { - actionName = ActionName.GoCQHTTP_SetGroupNotice; - - protected async _handle(payload: PayloadType) { - const group = payload.group_id.toString(); - return await WebApi.setGroupNotice(group, payload.content); - } -} \ No newline at end of file diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index 711f897f..b3d49a85 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -57,10 +57,9 @@ export enum ActionName { GetRecord = 'get_record', CleanCache = 'clean_cache', GetCookies = 'get_cookies', - // 以下为go-cqhttp api - GoCQHTTP_SendGroupNotice = '_send_group_notice', + // 以下为go-cqhttp api GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list', - GoCQHTTP_SetGroupNotice = '_send_group_notice', + GoCQHTTP_SendGroupNotice = '_send_group_notice', GoCQHTTP_GetGroupNotice = '_get_group_notice', GoCQHTTP_SendForwardMsg = 'send_forward_msg', GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg',