namespace GmRelay.DiscordBot;

public sealed class DiscordOptions
{
    public string? Token { get; init; }

    public void Validate()
    {
        if (string.IsNullOrWhiteSpace(Token))
        {
            throw new InvalidOperationException(
                "Discord:Token is required. Set via environment variable Discord__Token or user secrets.");
        }
    }
}
