using Microsoft.Extensions.DependencyInjection; using PhoenixLib.ServiceBus.Extensions; using Plugin.PlayerLogs; namespace DiscordNotifier.Formatting { public static class DiscordLogExtensions { public static void AddDiscordFormattedLog(this IServiceCollection services) where TMessage : class, IPlayerActionLogMessage where TFormatter : class, IDiscordLogFormatter { services.AddMessageSubscriber>(); services.AddSingleton, TFormatter>(); } public static void AddDiscordEmbedFormattedLog(this IServiceCollection services) where TMessage : class, IPlayerActionLogMessage where TFormatter : class, IDiscordEmbedLogFormatter { services.AddMessageSubscriber>(); services.AddSingleton, TFormatter>(); } } }