Browse Source

Fix quickstart leftover from previous draft

pull/934/head
Joe4evr 7 years ago
parent
commit
ad7e0a46c8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/getting_started/samples/intro/structure.cs

+ 2
- 2
docs/guides/getting_started/samples/intro/structure.cs View File

@@ -131,9 +131,9 @@ class Program
// Module classes MUST be marked 'public' or they will be ignored. // Module classes MUST be marked 'public' or they will be ignored.
// You also need to pass your 'IServiceProvider' instance now, // You also need to pass your 'IServiceProvider' instance now,
// so make sure that's done before you get here. // 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: // Or add Modules manually if you prefer to be a little more explicit:
await _commands.AddModuleAsync<SomeModule>(_services);
await _commands.AddModuleAsync<SomeModule>();
// Note that the first one is 'Modules' (plural) and the second is 'Module' (singular). // 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. // Subscribe a handler to see if a message invokes a command.


Loading…
Cancel
Save