|
|
@ -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)
|
|
|
|