Browse Source

Merge pull request #220 from RogueException/khio-patch2

Correct Parameter.Summary Source
tags/1.0-rc
RogueException GitHub 8 years ago
parent
commit
93371884de
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Command.cs

+ 1
- 1
src/Discord.Net.Commands/Command.cs 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;



Loading…
Cancel
Save