Reorganized commands structure

This commit is contained in:
RogueException
2016-06-21 05:32:49 -03:00
parent 2e8f67e8a4
commit 32ab967f4a
7 changed files with 165 additions and 128 deletions

View File

@@ -5,9 +5,13 @@ namespace Discord.Commands
[AttributeUsage(AttributeTargets.Method)]
public class CommandAttribute : Attribute
{
public string Text { get; }
public string Name { get; }
public CommandAttribute(string name)
public CommandAttribute(string name) : this(name, name) { }
public CommandAttribute(string text, string name)
{
Text = text.ToLowerInvariant();
Name = name;
}
}