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