From 6c681a044a01107b19480a3306e70028051fd180 Mon Sep 17 00:00:00 2001 From: Thomas Aunvik Date: Wed, 3 Jun 2020 22:28:04 +0200 Subject: [PATCH] Missing provider on AddModulesAsync --- src/DiscordBot/Services/CommandHandlingService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DiscordBot/Services/CommandHandlingService.cs b/src/DiscordBot/Services/CommandHandlingService.cs index d991eca..a71923c 100644 --- a/src/DiscordBot/Services/CommandHandlingService.cs +++ b/src/DiscordBot/Services/CommandHandlingService.cs @@ -25,7 +25,7 @@ public CommandHandlingService(IServiceProvider provider, DiscordSocketClient dis public async Task InitializeAsync(IServiceProvider provider) { _provider = provider; - await _commands.AddModulesAsync(Assembly.GetEntryAssembly()); + await _commands.AddModulesAsync(Assembly.GetEntryAssembly(), provider); // Add additional initialization code here... }