mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-28 21:54:11 -04:00
Fix message count in exported file
This commit is contained in:
parent
749a55a30e
commit
b7979d6d1f
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Resources;
|
using System.Resources;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
@ -42,7 +43,7 @@ namespace DiscordChatExporter.Services
|
||||||
infoRightHtml.AppendChild(HtmlNode.CreateNode(
|
infoRightHtml.AppendChild(HtmlNode.CreateNode(
|
||||||
$"<div class=\"channel-name\">{log.Channel.Name}</div>"));
|
$"<div class=\"channel-name\">{log.Channel.Name}</div>"));
|
||||||
infoRightHtml.AppendChild(HtmlNode.CreateNode(
|
infoRightHtml.AppendChild(HtmlNode.CreateNode(
|
||||||
$"<div class=\"misc\">{log.MessageGroups.Count:N0} messages</div>"));
|
$"<div class=\"misc\">{log.MessageGroups.SelectMany(g => g.Messages).Count():N0} messages</div>"));
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
var logHtml = doc.GetElementbyId("log");
|
var logHtml = doc.GetElementbyId("log");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue