Added command groups, fixed several bugs

This commit is contained in:
RogueException
2016-06-27 06:56:24 -03:00
parent 6300a24eb5
commit 7bb890cbfe
9 changed files with 72 additions and 42 deletions

View File

@@ -5,10 +5,14 @@ namespace Discord.Commands
[AttributeUsage(AttributeTargets.Class)]
public class GroupAttribute : Attribute
{
public string Name { get; }
public GroupAttribute(string name)
public string Prefix { get; }
public GroupAttribute()
{
Name = name;
Prefix = null;
}
public GroupAttribute(string prefix)
{
Prefix = prefix;
}
}
}

View File

@@ -5,5 +5,14 @@ namespace Discord.Commands
[AttributeUsage(AttributeTargets.Class)]
public class ModuleAttribute : Attribute
{
public string Prefix { get; }
public ModuleAttribute()
{
Prefix = null;
}
public ModuleAttribute(string prefix)
{
Prefix = prefix;
}
}
}