|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
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;
|
|
|
|
@ -25,7 +27,10 @@ public class ExportGuildCommand : ExportCommandBase
|
|
|
|
|
var cancellationToken = console.RegisterCancellationHandler();
|
|
|
|
|
|
|
|
|
|
await console.Output.WriteLineAsync("Fetching channels...");
|
|
|
|
|
var channels = await Discord.GetGuildChannelsAsync(GuildId, cancellationToken);
|
|
|
|
|
|
|
|
|
|
var channels = (await Discord.GetGuildChannelsAsync(GuildId, cancellationToken))
|
|
|
|
|
.Where(c => c.Kind != ChannelKind.GuildCategory)
|
|
|
|
|
.ToArray();
|
|
|
|
|
|
|
|
|
|
await base.ExecuteAsync(console, channels);
|
|
|
|
|
}
|
|
|
|
|