mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-23 19:26:57 -04:00
parent
557b5be844
commit
e6edcd27a4
1 changed files with 5 additions and 1 deletions
|
@ -96,6 +96,10 @@ namespace DiscordChatExporter.Core.Rendering
|
||||||
var formattedAttachments = message.Attachments.Select(a => a.Url).JoinToString(",");
|
var formattedAttachments = message.Attachments.Select(a => a.Url).JoinToString(",");
|
||||||
await RenderFieldAsync(writer, formattedAttachments);
|
await RenderFieldAsync(writer, formattedAttachments);
|
||||||
|
|
||||||
|
// Reactions
|
||||||
|
var formattedReactions = message.Reactions.Select(r => r.Emoji.Name + $"({r.Count})").JoinToString(",");
|
||||||
|
await RenderFieldAsync(writer, formattedReactions);
|
||||||
|
|
||||||
// Line break
|
// Line break
|
||||||
await writer.WriteLineAsync();
|
await writer.WriteLineAsync();
|
||||||
}
|
}
|
||||||
|
@ -103,7 +107,7 @@ namespace DiscordChatExporter.Core.Rendering
|
||||||
public async Task RenderAsync(TextWriter writer)
|
public async Task RenderAsync(TextWriter writer)
|
||||||
{
|
{
|
||||||
// Headers
|
// Headers
|
||||||
await writer.WriteLineAsync("Author;Date;Content;Attachments;");
|
await writer.WriteLineAsync("Author;Date;Content;Attachments;Reactions;");
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
foreach (var message in _chatLog.Messages)
|
foreach (var message in _chatLog.Messages)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue