mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: type
This commit is contained in:
@@ -21,6 +21,8 @@ import {
|
||||
OB11MessageData,
|
||||
OB11MessageDataType,
|
||||
OB11MessageFileBase,
|
||||
OB11MessageForward,
|
||||
OB11MessageReply,
|
||||
} from '@/onebot';
|
||||
import { OB11Constructor } from '../helper';
|
||||
import { EventType } from '@/onebot/event/OB11BaseEvent';
|
||||
@@ -331,12 +333,11 @@ export class OneBotMsgApi {
|
||||
|
||||
multiForwardMsgElement: async (_, msg) => {
|
||||
const NTQQMsgApi = this.coreContext.apis.MsgApi;
|
||||
const message_data: OB11MessageData = {
|
||||
const message_data: OB11MessageForward = {
|
||||
data: {} as any,
|
||||
type: 'unknown' as any,
|
||||
type: OB11MessageDataType.forward,
|
||||
};
|
||||
message_data['type'] = OB11MessageDataType.forward;
|
||||
message_data['data']['id'] = msg.msgId;
|
||||
message_data.data.id = msg.msgId;
|
||||
const parentMsgPeer = msg.parentMsgPeer ?? {
|
||||
chatType: msg.chatType,
|
||||
guildId: '',
|
||||
|
@@ -156,7 +156,7 @@ export interface OB11MessageCustomMusic {
|
||||
|
||||
export interface OB11MessageJson {
|
||||
type: OB11MessageDataType.json;
|
||||
data: { config: { token: string }, data: string };
|
||||
data: { config?: { token: string }, data: string };
|
||||
}
|
||||
|
||||
export interface OB11MessageDice {
|
||||
|
Reference in New Issue
Block a user