Open realkosty opened 4 months ago
Hi. Can you check if this also happens when you export in HTML? I think the issue might be that the TXT format does not know how to render the "thread start" system event.
Hi @Tyrrrz, no it looks like HTML behaves the same way:
Note how this is missing the full initial message, only has truncated version of it as the subject line
Thanks for the screenshots
@Tyrrrz could you please point me to the area in the code to look at? or alternatively lmk if you are interested in a commercial arrangement to prioritize this fix on your end
@realkosty your points of interest are:
In order of execution.
The issue appears to be that the starting message has content: ""
, but contains the actual message as a referenced message:
{
"type": 21,
"content": "",
"mentions": [],
"mention_roles": [],
"attachments": [],
"embeds": [],
"timestamp": "2024-11-07T16:40:27.109000+00:00",
"edited_timestamp": null,
"flags": 0,
"components": [],
"id": "1304123312372453390",
"channel_id": "1304123293049294940",
"author": {
"id": "128178626683338752",
"username": "tyrrrz",
"avatar": "d32cfe56f68f523cda67c9c5a3ef57aa",
"discriminator": "0",
"public_flags": 0,
"flags": 0,
"banner": null,
"accent_color": null,
"global_name": "Tyrrrz",
"avatar_decoration_data": null,
"banner_color": null,
"clan": null
},
"pinned": false,
"mention_everyone": false,
"tts": false,
"message_reference": {
"type": 0,
"channel_id": "1304123107845476363",
"message_id": "1304123293049294940",
"guild_id": "866458392705105940"
},
"position": 0,
"referenced_message": {
"type": 0,
"content": "Thread starting message with special characters ? \" / | >",
"mentions": [],
"mention_roles": [],
"attachments": [],
"embeds": [],
"timestamp": "2024-11-07T16:40:22.502000+00:00",
"edited_timestamp": null,
"flags": 32,
"components": [],
"id": "1304123293049294940",
"channel_id": "1304123107845476363",
"author": {
"id": "128178626683338752",
"username": "tyrrrz",
"avatar": "d32cfe56f68f523cda67c9c5a3ef57aa",
"discriminator": "0",
"public_flags": 0,
"flags": 0,
"banner": null,
"accent_color": null,
"global_name": "Tyrrrz",
"avatar_decoration_data": null,
"banner_color": null,
"clan": null
},
"pinned": false,
"mention_everyone": false,
"tts": false,
"thread": {
"id": "1304123293049294940",
"type": 11,
"last_message_id": "1304123315022991390",
"flags": 0,
"guild_id": "866458392705105940",
"name": "Thread starting message with special",
"parent_id": "1304123107845476363",
"rate_limit_per_user": 0,
"bitrate": 64000,
"user_limit": 0,
"rtc_region": null,
"owner_id": "128178626683338752",
"thread_metadata": {
"archived": false,
"archive_timestamp": "2024-11-07T16:40:27.071000+00:00",
"auto_archive_duration": 4320,
"locked": false,
"create_timestamp": "2024-11-07T16:40:27.071000+00:00"
},
"message_count": 1,
"member_count": 1,
"total_message_sent": 1
}
}
}
I think Discord uses the same approach for forwarded messages as well. We already parse this data, so we need to figure out how to render it properly.
Version
v2.43.3
Flavor
CLI (Command-Line Interface)
Platform
MacOS
Export format
TXT
Steps to reproduce
https://discord.gg/XYVZf6we (public channel)
Locate file
Details
Actual result:
Note [6/12/2024 6:03 PM] charonthegondolier missing
Expected result
Checklist