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

@@ -1,4 +1,6 @@
using System.Diagnostics;
using System;
using System.Diagnostics;
using System.Reflection;
using System.Threading.Tasks;
namespace Discord.Commands
@@ -13,9 +15,10 @@ namespace Discord.Commands
public string Description { get; }
public bool IsOptional { get; }
public bool IsRemainder { get; }
public Type Type { get; }
internal object DefaultValue { get; }
public CommandParameter(string name, string description, TypeReader reader, bool isOptional, bool isRemainder, object defaultValue)
public CommandParameter(string name, string description, Type type, TypeReader reader, bool isOptional, bool isRemainder, object defaultValue)
{
_reader = reader;
Name = name;