chore: OneBotApi

This commit is contained in:
手瓜一十雪 committed 2024-08-09 15:44:45 +08:00
1 parent 7587e1b8f5
commit 086a6ad2cd
111 files changed
+4493

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import SendMsg, { ContextMode } from '../msg/SendMsg';
import { ActionName, BaseCheckResult } from '../types';
import { OB11PostSendMsg } from '../../types';
// 未检测参数
class SendGroupMsg extends SendMsg {
actionName = ActionName.SendGroupMsg;
contextMode: ContextMode = ContextMode.Group;
protected async check(payload: OB11PostSendMsg): Promise<BaseCheckResult> {
delete payload.user_id;
payload.message_type = 'group';
return super.check(payload);
}
}
export default SendGroupMsg;