mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-25 16:05:26 +00:00
Set ChatLog.TotalMessageCount from ChatLogService
This commit is contained in:
@@ -24,10 +24,13 @@ namespace DiscordChatExporter.Core.Services
|
||||
// Group messages
|
||||
var messageGroups = _messageGroupService.GroupMessages(messages);
|
||||
|
||||
// Get total message count
|
||||
var totalMessageCount = messages.Count;
|
||||
|
||||
// Get mentionables
|
||||
var mentionables = await _dataService.GetMentionablesAsync(token, guild.Id, messages);
|
||||
|
||||
return new ChatLog(guild, channel, from, to, messageGroups, mentionables);
|
||||
return new ChatLog(guild, channel, from, to, messageGroups, totalMessageCount, mentionables);
|
||||
}
|
||||
|
||||
public async Task<ChatLog> GetChatLogAsync(AuthToken token, string channelId,
|
||||
|
||||
Reference in New Issue
Block a user