Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
idranme opened this issue Oct 20, 2023 · 1 comment
Open

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

idranme opened this issue Oct 20, 2023 · 1 comment

Comments

@idranme
Copy link

idranme commented Oct 20, 2023

{
  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

@shigma
Copy link
Collaborator

shigma commented Oct 29, 2023

这是哪个平台的消息?按理说应该包含 user 的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants