mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-27 11:21:21 +08:00
17 lines
508 B
TypeScript
17 lines
508 B
TypeScript
import SendMsg, { ContextMode } from './SendMsg';
|
|
import { ActionName, BaseCheckResult } from '../types';
|
|
import { OB11PostSendMsg } from '../../types';
|
|
|
|
// 未检测参数
|
|
class SendPrivateMsg extends SendMsg {
|
|
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;
|