Exposed CommandParameter's Type

This commit is contained in:
RogueException
2016-07-30 15:10:50 -03:00
parent c678432b1a
commit 02d5fc4a8e
2 changed files with 6 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ namespace Discord.Commands
bool isOptional = parameter.IsOptional;
object defaultValue = parameter.HasDefaultValue ? parameter.DefaultValue : null;
paramBuilder.Add(new CommandParameter(name, description, reader, isOptional, isRemainder, defaultValue));
paramBuilder.Add(new CommandParameter(name, description, type, reader, isOptional, isRemainder, defaultValue));
}
return paramBuilder.ToImmutable();
}