Support listing and exporting voice channels

Closes #874
This commit is contained in:
Oleksii Holub
2022-06-28 18:27:01 +03:00
parent 7b72f473fd
commit 94ef4b6981
12 changed files with 39 additions and 51 deletions

View File

@@ -17,7 +17,6 @@ public class GetDirectMessageChannelsCommand : TokenCommandBase
var cancellationToken = console.RegisterCancellationHandler();
var channels = (await Discord.GetGuildChannelsAsync(Guild.DirectMessages.Id, cancellationToken))
.Where(c => c.Kind.IsText())
.OrderByDescending(c => c.LastMessageId)
.ThenBy(c => c.Name)
.ToArray();