Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
22 lines
864 B
TypeScript
22 lines
864 B
TypeScript
import { normalize, SendMsgBase } from '@/onebot/action/msg/SendMsg';
|
|
import { OB11PostSendMsg } from '@/onebot/types';
|
|
import { ActionName } from '@/onebot/action/router';
|
|
|
|
// 未验证
|
|
export class GoCQHTTPSendForwardMsgBase extends SendMsgBase {
|
|
override async _handle(payload: OB11PostSendMsg) {
|
|
if (payload.messages) payload.message = normalize(payload.messages);
|
|
return super._handle(payload);
|
|
}
|
|
}
|
|
export class GoCQHTTPSendForwardMsg extends GoCQHTTPSendForwardMsgBase {
|
|
override actionName = ActionName.GoCQHTTP_SendForwardMsg;
|
|
}
|
|
export class GoCQHTTPSendPrivateForwardMsg extends GoCQHTTPSendForwardMsgBase {
|
|
override actionName = ActionName.GoCQHTTP_SendPrivateForwardMsg;
|
|
}
|
|
|
|
export class GoCQHTTPSendGroupForwardMsg extends GoCQHTTPSendForwardMsgBase {
|
|
override actionName = ActionName.GoCQHTTP_SendGroupForwardMsg;
|
|
}
|