Added ResourceType to attributes.

This commit is contained in:
Filip Strajnar 2024-06-16 01:09:46 +02:00
parent 5253d412e6
commit a2c6074eba

View file

@ -9,13 +9,13 @@ namespace DiscordDelete
[Verb("scan", HelpText = "Delete all saved messages.")]
public class ScanOptions
{
[Option('g', "guild")]
[Option('g', "guild", ResourceType = typeof(string), Default = null)]
public string? GuildId { get; set; }
[Option('c', "channel")]
[Option('c', "channel", ResourceType = typeof(string))]
public string? ChannelId { get; set; }
[Option('a', "author", Required = true)]
[Option('a', "author", Required = true, ResourceType = typeof(string))]
public string? Author { get; set; }
}
}