mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-24 19:54:22 -04:00
Fix crash when parsing position on DM channels (#496)
This commit is contained in:
parent
e49cf997ea
commit
a8031ad3aa
7 changed files with 17 additions and 25 deletions
|
@ -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}");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue