mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: 过滤无效null类型
This commit is contained in:
parent
f6a1b784c4
commit
337ac0eab9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user