This commit is contained in:
手瓜一十雪 2024-04-29 15:55:28 +08:00
parent efa5ee0e57
commit 09405de26c

View File

@ -7,12 +7,11 @@ interface PayloadType {
content: string;
}
export class SetGroupNotice extends BaseAction<PayloadType, null> {
export class SetGroupNotice extends BaseAction<PayloadType, any> {
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);
}
}