You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
862 B
26 lines
862 B
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using CliFx.Attributes;
|
|
using CliFx.Infrastructure;
|
|
using DiscordChatExporter.Cli.Commands.Base;
|
|
using DiscordChatExporter.Core.Discord;
|
|
|
|
namespace DiscordChatExporter.Cli.Commands;
|
|
|
|
[Command("export", Description = "Export one or multiple channels.")]
|
|
public class ExportChannelsCommand : ExportCommandBase
|
|
{
|
|
// TODO: change this to plural (breaking change)
|
|
[CommandOption(
|
|
"channel",
|
|
'c',
|
|
Description = "Channel ID(s). If provided with category IDs, all channels inside those categories will be exported."
|
|
)]
|
|
public required IReadOnlyList<Snowflake> ChannelIds { get; init; }
|
|
|
|
public override async ValueTask ExecuteAsync(IConsole console)
|
|
{
|
|
await base.ExecuteAsync(console);
|
|
await base.ExecuteAsync(console, ChannelIds);
|
|
}
|
|
} |