|
|
|
@ -4,6 +4,7 @@ using CliFx.Attributes;
|
|
|
|
|
using CliFx.Infrastructure;
|
|
|
|
|
using DiscordChatExporter.Cli.Commands.Base;
|
|
|
|
|
using DiscordChatExporter.Core.Discord;
|
|
|
|
|
using DiscordChatExporter.Core.Discord.Data;
|
|
|
|
|
using DiscordChatExporter.Core.Utils.Extensions;
|
|
|
|
|
|
|
|
|
|
namespace DiscordChatExporter.Cli.Commands;
|
|
|
|
@ -27,7 +28,7 @@ public class ExportGuildCommand : ExportCommandBase
|
|
|
|
|
|
|
|
|
|
await console.Output.WriteLineAsync("Fetching channels...");
|
|
|
|
|
var channels = await Discord.GetGuildChannelsAsync(GuildId, cancellationToken);
|
|
|
|
|
var textChannels = channels.Where(c => c.IsTextChannel).ToArray();
|
|
|
|
|
var textChannels = channels.Where(c => c.Kind.IsText()).ToArray();
|
|
|
|
|
|
|
|
|
|
await base.ExecuteAsync(console, textChannels);
|
|
|
|
|
}
|
|
|
|
|