Changed Parameter Summary from pulling DescriptionAttribute to SummaryAttribute

This commit is contained in:
Khionu Terabite
2016-08-21 18:27:36 -04:00
parent 99e9c36a69
commit ad54be8790

View File

@@ -163,7 +163,7 @@ namespace Discord.Commands
throw new InvalidOperationException("Remainder parameters must be the last parameter in a command.");
string name = parameter.Name;
string summary = parameter.GetCustomAttribute<DescriptionAttribute>()?.Text;
string summary = parameter.GetCustomAttribute<SummaryAttribute>()?.Text;
bool isOptional = parameter.IsOptional;
object defaultValue = parameter.HasDefaultValue ? parameter.DefaultValue : null;