Revert "fix: coerce"

This reverts commit fb20b2e16c.
This commit is contained in:
手瓜一十雪
2025-04-19 10:53:29 +08:00
parent a5455e27d1
commit ceea50b116
7 changed files with 35 additions and 40 deletions

View File

@@ -4,13 +4,18 @@ import { ActionName } from '@/onebot/action/router';
// 未验证
export class GoCQHTTPSendForwardMsgBase extends SendMsgBase {
override async _handle(payload: OB11PostSendMsg) {
protected override async check(payload: OB11PostSendMsg) {
if (payload.messages) payload.message = normalize(payload.messages);
return super._handle(payload);
return super.check(payload);
}
}
export class GoCQHTTPSendForwardMsg extends GoCQHTTPSendForwardMsgBase {
override actionName = ActionName.GoCQHTTP_SendForwardMsg;
protected override async check(payload: OB11PostSendMsg) {
if (payload.messages) payload.message = normalize(payload.messages);
return super.check(payload);
}
}
export class GoCQHTTPSendPrivateForwardMsg extends GoCQHTTPSendForwardMsgBase {
override actionName = ActionName.GoCQHTTP_SendPrivateForwardMsg;