Render voice channel mentions

Closes #636
This commit is contained in:
Tyrrrz
2021-07-18 02:19:50 +03:00
parent b58e67776c
commit ae42554621
11 changed files with 37 additions and 13 deletions

View File

@@ -16,7 +16,13 @@ namespace DiscordChatExporter.Cli.Commands
{
var channels = await Discord.GetGuildChannelsAsync(Guild.DirectMessages.Id);
foreach (var channel in channels.OrderBy(c => c.Name))
var textChannels = channels
.Where(c => c.IsTextChannel)
.OrderBy(c => c.Category.Position)
.ThenBy(c => c.Name)
.ToArray();
foreach (var channel in textChannels)
{
// Channel ID
await console.Output.WriteAsync(channel.Id.ToString());