mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: 过滤无效null类型
This commit is contained in:
@@ -717,7 +717,7 @@ export class OneBotMsgApi {
|
||||
const msgSegments = (await Promise.all(msg.elements.map(
|
||||
async (element) => {
|
||||
for (const key in element) {
|
||||
if (keyCanBeParsed(key, this.rawToOb11Converters)) {
|
||||
if (keyCanBeParsed(key, this.rawToOb11Converters) && this.rawToOb11Converters[key]) {
|
||||
return await this.rawToOb11Converters[key]?.(
|
||||
// eslint-disable-next-line
|
||||
// @ts-ignore
|
||||
|
Reference in New Issue
Block a user