Exemple #1
0
 public async Task RegisterCommandsAsync()
 {
     _client.MessageReceived += HandleCommandAsync;
     await _commands.AddModulesAsync(Assembly.GetEntryAssembly(), _services);
 }
 public async Task InstallCommandsAsync()
 {
     _client.MessageReceived += HandleCommandAsync;
     await _commands.AddModulesAsync(Assembly.GetEntryAssembly(), null);
 }
Exemple #3
0
 public async Task InstallCommandsAsync()
 {
     // Hook the MessageReceived event into our command handler
     _client.MessageReceived += HandleCommandAsync;
     await _commands.AddModulesAsync(Assembly.GetEntryAssembly(), _services);
 }