Skip to content

TypeError: Cannot read properties of undefined (reading 'id') #6

@idranme

Description

@idranme
{
  messageId: '7291993637397281169',
  id: '7291993637397281169',
  elements: [ Element { type: 'text', attrs: [Object], children: [] } ],
  content: '我喜欢的队伍输了'
}
2023-10-20 18:59:33 [W] chat TypeError: Cannot read properties of undefined (reading 'id')
                            at Object.fromUniversal (D:\develop\koishi-dev\node_modules\koishi-plugin-messages\lib\message.js:62:40)
                            at SyncChannel.syncHistory (D:\develop\koishi-dev\node_modules\koishi-plugin-messages\lib\channel.js:74:60)
                            at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                            at async SyncChannel._init (D:\develop\koishi-dev\node_modules\koishi-plugin-messages\lib\channel.js:121:13)
                            at async D:\develop\koishi-dev\node_modules\koishi-plugin-messages\lib\channel.js:41:17
                            at async SyncChannel.ensure (D:\develop\koishi-dev\node_modules\koishi-plugin-messages\lib\channel.js:54:20)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions