Improve DI system

This commit is contained in:
Finite Reality
2016-07-21 00:23:49 +01:00
parent e266fa8b32
commit f7455c389b
5 changed files with 40 additions and 28 deletions

View File

@@ -174,7 +174,7 @@ namespace Discord.Commands
{
var typeInfo = type.GetTypeInfo();
var moduleAttr = typeInfo.GetCustomAttribute<ModuleAttribute>();
if (moduleAttr != null && moduleAttr.Autoload)
if (moduleAttr != null && moduleAttr.AutoLoad)
{
var moduleInstance = ReflectionUtils.CreateObject(typeInfo, this, dependencyMap);
modules.Add(LoadInternal(moduleInstance, moduleAttr, typeInfo));