chore: OneBotApi

This commit is contained in:
手瓜一十雪 committed 2024-08-09 15:44:45 +08:00
1 parent 7842cd0bc0
commit 8a4add257f
111 files changed
+4493

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
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;