#nullable disable namespace NadekoBot.Services; // todo remove public sealed class DiscordEmbedBuilderWrapper { // public EmbedBuilder WithColor(EmbedColor color) // => color switch // { // EmbedColor.Ok => Wrap(embed.WithColor(_botConfig.Color.Ok.ToDiscordColor())), // EmbedColor.Pending => Wrap(embed.WithColor(_botConfig.Color.Pending.ToDiscordColor())), // EmbedColor.Error => Wrap(embed.WithColor(_botConfig.Color.Error.ToDiscordColor())), // _ => throw new ArgumentOutOfRangeException(nameof(color), "Unsupported EmbedColor type") // }; }