|
|
@ -4,6 +4,7 @@ using CliFx;
|
|
|
|
using CliFx.Attributes;
|
|
|
|
using CliFx.Attributes;
|
|
|
|
using DiscordChatExporter.Cli.Commands.Base;
|
|
|
|
using DiscordChatExporter.Cli.Commands.Base;
|
|
|
|
using DiscordChatExporter.Domain.Discord.Models;
|
|
|
|
using DiscordChatExporter.Domain.Discord.Models;
|
|
|
|
|
|
|
|
using DiscordChatExporter.Domain.Discord.Models.Common;
|
|
|
|
using DiscordChatExporter.Domain.Utilities;
|
|
|
|
using DiscordChatExporter.Domain.Utilities;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DiscordChatExporter.Cli.Commands
|
|
|
|
namespace DiscordChatExporter.Cli.Commands
|
|
|
@ -15,7 +16,7 @@ namespace DiscordChatExporter.Cli.Commands
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var channels = await GetDiscordClient().GetGuildChannelsAsync(Guild.DirectMessages.Id);
|
|
|
|
var channels = await GetDiscordClient().GetGuildChannelsAsync(Guild.DirectMessages.Id);
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var channel in channels.OrderBy(c => c.Category).ThenBy(c => c.Name))
|
|
|
|
foreach (var channel in channels.OrderBy(c => c.Category, PositionBasedComparer.Instance).ThenBy(c => c.Name))
|
|
|
|
console.Output.WriteLine($"{channel.Id} | {channel.Category} / {channel.Name}");
|
|
|
|
console.Output.WriteLine($"{channel.Id} | {channel.Category} / {channel.Name}");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|