refactor: msg context
This commit is contained in:
1 parent
861f105bea
commit
a643fac073
3 files changed
+15
-7
No files matched your search
@@ -1,9 +1,10 @@
|
||||
import SendMsg from './SendMsg';
|
||||
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';
|
||||
|
||||
Reference in new issue
Block a user