Added command groups, fixed several bugs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user