mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-25 10:43:41 +00:00
Architecture refactor (#63)
This commit is contained in:
@@ -38,16 +38,19 @@ namespace DiscordChatExporter.Cli.ViewModels
|
||||
}
|
||||
|
||||
// Get messages
|
||||
var messages = await _dataService.GetChannelMessagesAsync(token, channelId, from, to);
|
||||
var messages = await _dataService.GetChannelMessagesAsync(token, channel.Id, from, to);
|
||||
|
||||
// Group them
|
||||
// Group messages
|
||||
var messageGroups = _messageGroupService.GroupMessages(messages);
|
||||
|
||||
// Get mentionables
|
||||
var mentionables = await _dataService.GetMentionablesAsync(token, guild.Id, messages);
|
||||
|
||||
// Create log
|
||||
var log = new ChannelChatLog(guild, channel, messageGroups, messages.Count);
|
||||
var log = new ChatLog(guild, channel, messageGroups, mentionables);
|
||||
|
||||
// Export
|
||||
await _exportService.ExportAsync(format, filePath, log);
|
||||
_exportService.Export(format, filePath, log);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user