Fix crash when parsing position on DM channels (#496)

This commit is contained in:
Lucas LaBuff
2021-02-06 10:00:29 -05:00
committed by GitHub
parent e49cf997ea
commit a8031ad3aa
7 changed files with 17 additions and 25 deletions

View File

@@ -16,7 +16,7 @@ namespace DiscordChatExporter.Cli.Commands
{
var channels = await GetDiscordClient().GetGuildChannelsAsync(Guild.DirectMessages.Id);
foreach (var channel in channels.OrderBy(c => c.Category, PositionBasedComparer.Instance).ThenBy(c => c.Name))
foreach (var channel in channels.OrderBy(c => c.Name))
console.Output.WriteLine($"{channel.Id} | {channel.Category} / {channel.Name}");
}
}