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