Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
18 lines
573 B
TypeScript
18 lines
573 B
TypeScript
import { ContextMode, SendMsgBase } from '@/onebot/action/msg/SendMsg';
|
|
import { ActionName, BaseCheckResult } from '@/onebot/action/router';
|
|
import { OB11PostSendMsg } from '@/onebot/types';
|
|
|
|
// 未检测参数
|
|
class SendGroupMsg extends SendMsgBase {
|
|
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;
|