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

@@ -6,16 +6,16 @@ namespace Discord.Commands
public class ModuleAttribute : Attribute
{
public string Prefix { get; }
public bool Autoload { get; }
public ModuleAttribute(bool autoload = true)
public bool AutoLoad { get; set; }
public ModuleAttribute()
{
Prefix = null;
Autoload = autoload;
AutoLoad = true;
}
public ModuleAttribute(string prefix, bool autoload = true)
public ModuleAttribute(string prefix)
{
Prefix = prefix;
Autoload = autoload;
AutoLoad = true;
}
}
}