From 9efb2efc582e3d57154f40f519762a07b9d00501 Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 17 Sep 2024 04:35:29 +0200 Subject: Arcanelibs changes --- Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Utilities/LibMatrix.Utilities.Bot') diff --git a/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs b/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs index 215f28a..621c1ee 100644 --- a/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs +++ b/Utilities/LibMatrix.Utilities.Bot/BotCommandInstaller.cs @@ -37,7 +37,7 @@ public class BotInstaller(IServiceCollection services) { } public BotInstaller DiscoverAllCommands() { - foreach (var commandClass in new ClassCollector().ResolveFromAllAccessibleAssemblies()) { + foreach (var commandClass in ClassCollector.ResolveFromAllAccessibleAssemblies()) { Console.WriteLine($"Adding command {commandClass.Name}"); services.AddScoped(typeof(ICommand), commandClass); } -- cgit 1.5.1