mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-14 10:52:30 +00:00
@@ -168,7 +168,8 @@ namespace DiscordChatExporter.Gui.ViewModels
|
||||
var guildChannelMap = new Dictionary<Guild, IReadOnlyList<Channel>>();
|
||||
await foreach (var guild in discord.GetUserGuildsAsync())
|
||||
{
|
||||
guildChannelMap[guild] = await discord.GetGuildChannelsAsync(guild.Id);
|
||||
var channels = await discord.GetGuildChannelsAsync(guild.Id);
|
||||
guildChannelMap[guild] = channels.Where(c => c.IsTextChannel).ToArray();
|
||||
}
|
||||
|
||||
GuildChannelMap = guildChannelMap;
|
||||
|
||||
Reference in New Issue
Block a user