Fixed Install -> commands.LoadAssembly
await commands.LoadAssembly(Assembly.GetCurrentAssembly(), map); -> await commands.AddModulesAsync(Assembly.GetEntryAssembly());
This commit is contained in:
@@ -11,7 +11,7 @@ public class Commands
|
||||
var map = new DependencyMap();
|
||||
map.Add(client);
|
||||
map.Add(commands);
|
||||
await commands.LoadAssembly(Assembly.GetCurrentAssembly(), map);
|
||||
await commands.AddModulesAsync(Assembly.GetEntryAssembly());
|
||||
}
|
||||
// In ConfigureServices, we will inject the Dependency Map with
|
||||
// all of the services our client will use.
|
||||
@@ -21,4 +21,4 @@ public class Commands
|
||||
map.Add(new DatabaseService(map));
|
||||
}
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user