mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-08-10 06:17:43 +02:00
Filter out categories when displaying channels
This commit is contained in:
@@ -17,6 +17,7 @@ public class GetDirectMessageChannelsCommand : TokenCommandBase
|
||||
var cancellationToken = console.RegisterCancellationHandler();
|
||||
|
||||
var channels = (await Discord.GetGuildChannelsAsync(Guild.DirectMessages.Id, cancellationToken))
|
||||
.Where(c => c.Kind != ChannelKind.GuildCategory)
|
||||
.OrderByDescending(c => c.LastMessageId)
|
||||
.ThenBy(c => c.Name)
|
||||
.ToArray();
|
||||
|
||||
Reference in New Issue
Block a user