Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
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
17 lines
533 B
TypeScript
17 lines
533 B
TypeScript
import { ContextMode, SendMsgBase } from './SendMsg';
|
|
import { ActionName, BaseCheckResult } from '@/onebot/action/router';
|
|
import { OB11PostSendMsg } from '@/onebot/types';
|
|
|
|
// 未检测参数
|
|
class SendPrivateMsg extends SendMsgBase {
|
|
actionName = ActionName.SendPrivateMsg;
|
|
contextMode: ContextMode = ContextMode.Private;
|
|
|
|
protected async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
|
|
payload.message_type = 'private';
|
|
return super.check(payload);
|
|
}
|
|
}
|
|
|
|
export default SendPrivateMsg;
|