This commit is contained in:
Oleksii Holub
2018-12-19 17:15:54 +02:00
parent bf5cedb646
commit e22e1c03fb
5 changed files with 27 additions and 12 deletions

View File

@@ -21,8 +21,11 @@ namespace DiscordChatExporter.Cli.Verbs
// Get channels
var channels = await dataService.GetDirectMessageChannelsAsync(Options.GetToken());
// Order channels
channels = channels.OrderBy(c => c.Name).ToArray();
// Print result
foreach (var channel in channels.OrderBy(c => c.Name))
foreach (var channel in channels)
Console.WriteLine($"{channel.Id} | {channel.Name}");
}
}