From 09405de26ce8a663cf60b0d3c5036678c70ec415 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: Mon, 29 Apr 2024 15:55:28 +0800 Subject: [PATCH] fix --- src/onebot11/action/group/SetGroupNotice.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/onebot11/action/group/SetGroupNotice.ts b/src/onebot11/action/group/SetGroupNotice.ts index 8a0e7099..a656a9b0 100644 --- a/src/onebot11/action/group/SetGroupNotice.ts +++ b/src/onebot11/action/group/SetGroupNotice.ts @@ -7,12 +7,11 @@ interface PayloadType { content: string; } -export class SetGroupNotice extends BaseAction { +export class SetGroupNotice extends BaseAction { actionName = ActionName.GoCQHTTP_SetGroupNotice; protected async _handle(payload: PayloadType) { const group = payload.group_id.toString(); - WebApi.setGroupNotice(group, payload.content); - return null; + return await WebApi.setGroupNotice(group, payload.content); } } \ No newline at end of file