mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 23:19:37 +00:00
17 lines
560 B
TypeScript
17 lines
560 B
TypeScript
import { ContextMode, SendMsgBase } from './SendMsg';
|
|
import { ActionName, BaseCheckResult } from '@/onebot/action/router';
|
|
import { OB11PostSendMsg } from '@/onebot/types';
|
|
|
|
// 未检测参数
|
|
class SendPrivateMsg extends SendMsgBase {
|
|
override actionName = ActionName.SendPrivateMsg;
|
|
override contextMode: ContextMode = ContextMode.Private;
|
|
|
|
protected override async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
|
|
payload.message_type = 'private';
|
|
return super.check(payload);
|
|
}
|
|
}
|
|
|
|
export default SendPrivateMsg;
|