mirror of
https://onedev.fprog.nl/DiscordClient
synced 2025-12-29 10:08:37 +01:00
Created basic CLI options.
This commit is contained in:
parent
66f3d45f28
commit
86da656a1f
11
DiscordDelete/DeleteOptions.cs
Normal file
11
DiscordDelete/DeleteOptions.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using CommandLine;
|
||||
|
||||
namespace DiscordDelete
|
||||
{
|
||||
[Verb("delete", HelpText = "Delete all saved messages.")]
|
||||
public class DeleteOptions { }
|
||||
}
|
||||
18
DiscordDelete/ScanOptions.cs
Normal file
18
DiscordDelete/ScanOptions.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using CommandLine;
|
||||
|
||||
namespace DiscordDelete
|
||||
{
|
||||
[Verb("scan", HelpText = "Delete all saved messages.")]
|
||||
public class ScanOptions
|
||||
{
|
||||
[Option('g', "guild")]
|
||||
public string? GuildId { get; set; }
|
||||
|
||||
[Option('c', "channel", Required = true)]
|
||||
public string? ChannelId { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue