noneplugin / nonebot-plugin-chatrecorder

适用于 Nonebot2 的聊天记录插件
MIT License
55 stars 8 forks source link

Object of type Embed is not JSON serializable #55

Open paul-sama opened 1 month ago

paul-sama commented 1 month ago

nonebot_plugin_chatrecorder 0.6.1 nonebot-adapter-discord 0.1.8

sqlalchemy.exc.StatementError: (builtins.TypeError) Object of type Embed is not JSON serializable
[SQL: INSERT INTO nonebot_plugin_chatrecorder_messagerecord (session_persist_id, time, type, message_id, message, plain_text) VALUES (?, ?, ?, ?, ?, ?)]
MeetWq commented 1 month ago

能看看报错时发的是什么消息吗

paul-sama commented 1 month ago

image

paul-sama commented 1 month ago

其他报错

sqlalchemy.exc.StatementError: (builtins.TypeError) Object of type AttachmentSend is not JSON serializable
[SQL: INSERT INTO nonebot_plugin_chatrecorder_messagerecord (session_persist_id, time, type, message_id, message, plain_text) VALUES (?, ?, ?, ?, ?, ?)]