From ff13e64dca922550eb6a955de0690d841590a9b0 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 26 Mar 2025 11:13:59 +0100 Subject: Split out invite context, add empty filter constants --- Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs') diff --git a/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs b/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs index f7ef317..4947394 100644 --- a/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs +++ b/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs @@ -69,16 +69,16 @@ public class BotInstaller(IServiceCollection services) { return this; } - public BotInstaller WithInviteHandler(Func inviteHandler) { + public BotInstaller WithInviteHandler(Func inviteHandler) { services.AddSingleton(inviteHandler); services.AddHostedService(); services.AddSingleton(); return this; } - public BotInstaller WithInviteHandler() where T : class, InviteHandlerHostedService.IInviteHandler { + public BotInstaller WithInviteHandler() where T : class, IRoomInviteHandler { services.AddSingleton(); - services.AddSingleton>(sp => sp.GetRequiredService().HandleInviteAsync); + services.AddSingleton>(sp => sp.GetRequiredService().HandleInviteAsync); services.AddHostedService(); services.AddSingleton(); return this; -- cgit 1.5.1