mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-23 03:06:53 -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(",");
|
||||
await RenderFieldAsync(writer, formattedAttachments);
|
||||
|
||||
// Reactions
|
||||
var formattedReactions = message.Reactions.Select(r => r.Emoji.Name + $"({r.Count})").JoinToString(",");
|
||||
await RenderFieldAsync(writer, formattedReactions);
|
||||
|
||||
// Line break
|
||||
await writer.WriteLineAsync();
|
||||
}
|
||||
|
@ -103,7 +107,7 @@ namespace DiscordChatExporter.Core.Rendering
|
|||
public async Task RenderAsync(TextWriter writer)
|
||||
{
|
||||
// Headers
|
||||
await writer.WriteLineAsync("Author;Date;Content;Attachments;");
|
||||
await writer.WriteLineAsync("Author;Date;Content;Attachments;Reactions;");
|
||||
|
||||
// Log
|
||||
foreach (var message in _chatLog.Messages)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue