diff --git a/docs/guides/getting_started/samples/intro/structure.cs b/docs/guides/getting_started/samples/intro/structure.cs index 2520e494c..be8d9a8be 100644 --- a/docs/guides/getting_started/samples/intro/structure.cs +++ b/docs/guides/getting_started/samples/intro/structure.cs @@ -131,9 +131,9 @@ class Program // Module classes MUST be marked 'public' or they will be ignored. // You also need to pass your 'IServiceProvider' instance now, // so make sure that's done before you get here. - await _commands.AddModulesAsync(Assembly.GetEntryAssembly(), _services); + await _commands.AddModulesAsync(Assembly.GetEntryAssembly()); // Or add Modules manually if you prefer to be a little more explicit: - await _commands.AddModuleAsync(_services); + await _commands.AddModuleAsync(); // Note that the first one is 'Modules' (plural) and the second is 'Module' (singular). // Subscribe a handler to see if a message invokes a command.