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

@@ -105,10 +105,7 @@ public class DashboardViewModel : PropertyChangedBase
var guildChannelMap = new Dictionary<Guild, IReadOnlyList<Channel>>();
await foreach (var guild in discord.GetUserGuildsAsync())
{
var channels = await discord.GetGuildChannelsAsync(guild.Id);
guildChannelMap[guild] = channels.Where(c => c.Kind.IsText()).ToArray();
}
guildChannelMap[guild] = await discord.GetGuildChannelsAsync(guild.Id);
_discord = discord;
GuildChannelMap = guildChannelMap;