Add requested changes
This commit is contained in:
@@ -116,8 +116,6 @@ namespace Discord.Commands
|
||||
{
|
||||
var attributes = method.GetCustomAttributes();
|
||||
|
||||
builder.Name = method.Name;
|
||||
|
||||
foreach (var attribute in attributes)
|
||||
{
|
||||
// TODO: C#7 type switch
|
||||
@@ -129,9 +127,7 @@ namespace Discord.Commands
|
||||
builder.Name = builder.Name ?? cmdAttr.Text;
|
||||
}
|
||||
else if (attribute is NameAttribute)
|
||||
{
|
||||
builder.Name = (attribute as NameAttribute).Text;
|
||||
}
|
||||
else if (attribute is PriorityAttribute)
|
||||
builder.Priority = (attribute as PriorityAttribute).Priority;
|
||||
else if (attribute is SummaryAttribute)
|
||||
|
||||
Reference in New Issue
Block a user