feat: new api

This commit is contained in:
手瓜一十雪
2024-07-20 17:33:26 +08:00
parent 7a581066c2
commit 80c59de545
7 changed files with 36 additions and 9 deletions

View File

@@ -60,3 +60,12 @@ export class GoCQHTTPMarkMsgAsRead extends BaseAction<Payload, null> {
return null;
}
}
export class MarkAllMsgAsRead extends BaseAction<Payload, null> {
actionName = ActionName._MarkAllMsgAsRead;
protected async _handle(payload: Payload): Promise<null> {
await NTQQMsgApi.markallMsgAsRead();
return null;
}
}