Add support for announcement channels

Closes #222
This commit is contained in:
Alexey Golub
2019-12-01 17:35:56 +02:00
parent 632b9f953b
commit 0d2ae8b5db
6 changed files with 22 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ namespace DiscordChatExporter.Cli.Commands
var channels = await DataService.GetGuildChannelsAsync(GetToken(), GuildId);
// Filter and order channels
channels = channels.Where(c => c.Type == ChannelType.GuildTextChat).OrderBy(c => c.Name).ToArray();
channels = channels.Where(c => c.Type.IsExportable()).OrderBy(c => c.Name).ToArray();
// Loop through channels
foreach (var channel in channels)

View File

@@ -24,7 +24,7 @@ namespace DiscordChatExporter.Cli.Commands
var channels = await DataService.GetGuildChannelsAsync(GetToken(), GuildId);
// Filter and order channels
channels = channels.Where(c => c.Type == ChannelType.GuildTextChat).OrderBy(c => c.Name).ToArray();
channels = channels.Where(c => c.Type.IsExportable()).OrderBy(c => c.Name).ToArray();
// Print result
foreach (var channel in channels)