Browse Source

Add comment explaining that there's two differently named methods to add modules

pull/783/head
Joe4evr 8 years ago
parent
commit
83d8750708
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      docs/guides/getting_started/samples/intro/structure.cs

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

@@ -108,6 +108,7 @@ class Program
await _commands.AddModulesAsync(Assembly.GetEntryAssembly()); 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>(); await _commands.AddModuleAsync<SomeModule>();
// 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.
_client.MessageReceived += HandleCommandAsync; _client.MessageReceived += HandleCommandAsync;


Loading…
Cancel
Save