Implemented command type readers, parser and service.

This commit is contained in:
RogueException
2016-06-26 03:35:40 -03:00
parent d934a5a1eb
commit f59b6b9004
19 changed files with 775 additions and 42 deletions

View File

@@ -6,13 +6,14 @@ namespace Discord.Commands
public class CommandAttribute : Attribute
{
public string Text { get; }
public string Name { get; }
public CommandAttribute(string name) : this(name, name) { }
public CommandAttribute(string text, string name)
public CommandAttribute()
{
Text = text.ToLowerInvariant();
Name = name;
Text = null;
}
public CommandAttribute(string text)
{
Text = text;
}
}
}