Reorganized commands structure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user