Merge pull request #220 from RogueException/khio-patch2
Correct Parameter.Summary Source
This commit is contained in:
@@ -163,7 +163,7 @@ namespace Discord.Commands
|
|||||||
throw new InvalidOperationException("Remainder parameters must be the last parameter in a command.");
|
throw new InvalidOperationException("Remainder parameters must be the last parameter in a command.");
|
||||||
|
|
||||||
string name = parameter.Name;
|
string name = parameter.Name;
|
||||||
string summary = parameter.GetCustomAttribute<DescriptionAttribute>()?.Text;
|
string summary = parameter.GetCustomAttribute<SummaryAttribute>()?.Text;
|
||||||
bool isOptional = parameter.IsOptional;
|
bool isOptional = parameter.IsOptional;
|
||||||
object defaultValue = parameter.HasDefaultValue ? parameter.DefaultValue : null;
|
object defaultValue = parameter.HasDefaultValue ? parameter.DefaultValue : null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user