mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
14 lines
408 B
TypeScript
14 lines
408 B
TypeScript
import SendMsg from "./SendMsg";
|
|
import {ActionName, BaseCheckResult} from "./types";
|
|
import {OB11PostSendMsg} from "../types";
|
|
|
|
class SendPrivateMsg extends SendMsg {
|
|
actionName = ActionName.SendPrivateMsg
|
|
|
|
protected async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
|
|
payload.message_type = "private"
|
|
return super.check(payload);
|
|
}
|
|
}
|
|
|
|
export default SendPrivateMsg |