mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-10 00:43:03 +00:00
Migrate to Stylet and refactor view/view-model framework
This commit is contained in:
@@ -16,8 +16,7 @@ namespace DiscordChatExporter.Cli.Verbs
|
||||
public override async Task ExecuteAsync()
|
||||
{
|
||||
// Get data service
|
||||
var container = new Container();
|
||||
var dataService = container.Resolve<IDataService>();
|
||||
var dataService = Container.Instance.Get<DataService>();
|
||||
|
||||
// Get channels
|
||||
var channels = await dataService.GetDirectMessageChannelsAsync(Options.GetToken());
|
||||
|
||||
Reference in New Issue
Block a user