Add CLI command to export all available channels in a guild (#123)

This commit is contained in:
TVdata 2018-12-19 16:53:21 +02:00 committed by Alexey Golub
parent 17b0161ade
commit bf5cedb646
6 changed files with 135 additions and 29 deletions

View file

@ -38,6 +38,7 @@ namespace DiscordChatExporter.Cli
var verbTypes = new[]
{
typeof(ExportChatOptions),
typeof(ExportGuildOptions),
typeof(GetChannelsOptions),
typeof(GetDirectMessageChannelsOptions),
typeof(GetGuildsOptions)
@ -48,6 +49,7 @@ namespace DiscordChatExporter.Cli
// Execute commands
parsedArgs.WithParsed<ExportChatOptions>(o => new ExportChatVerb(o).Execute());
parsedArgs.WithParsed<ExportGuildOptions>(o => new ExportGuildVerb(o).Execute());
parsedArgs.WithParsed<GetChannelsOptions>(o => new GetChannelsVerb(o).Execute());
parsedArgs.WithParsed<GetDirectMessageChannelsOptions>(o => new GetDirectMessageChannelsVerb(o).Execute());
parsedArgs.WithParsed<GetGuildsOptions>(o => new GetGuildsVerb(o).Execute());