style: fix

This commit is contained in:
手瓜一十雪
2024-08-26 00:17:42 +08:00
parent fc73295520
commit 9da714bf15
9 changed files with 40 additions and 43 deletions

View File

@@ -21,8 +21,7 @@ import {
OB11MessageData,
OB11MessageDataType,
OB11MessageFileBase,
OB11MessageForward,
OB11MessageReply,
OB11MessageForward
} from '@/onebot';
import { OB11Constructor } from '../helper';
import { EventType } from '@/onebot/event/OB11BaseEvent';
@@ -447,8 +446,8 @@ export class OneBotMsgApi {
replyElement: {
replayMsgSeq: replyMsg.msgSeq, // raw.msgSeq
replayMsgId: replyMsg.msgId, // raw.msgId
senderUin: replyMsg.senderUin!,
senderUinStr: replyMsg.senderUin!,
senderUin: replyMsg.senderUin,
senderUinStr: replyMsg.senderUin,
},
} :
undefined;
@@ -793,6 +792,6 @@ export class OneBotMsgApi {
deleteAfterSentFiles.push(path);
}
return { path, fileName: inputdata.name || fileName };
return { path, fileName: inputdata.name ?? fileName };
}
}