Make use of the required keyword

This commit is contained in:
Oleksii Holub
2022-12-08 03:20:28 +02:00
parent a8f89ec292
commit f3830247fe
8 changed files with 13 additions and 28 deletions

View File

@@ -19,7 +19,7 @@ public class GetChannelsCommand : TokenCommandBase
IsRequired = true,
Description = "Guild ID."
)]
public Snowflake GuildId { get; init; }
public required Snowflake GuildId { get; init; }
public override async ValueTask ExecuteAsync(IConsole console)
{