mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-11 01:13:02 +00:00
Fix crash when parsing position on DM channels (#496)
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user