|
@@ -54,7 +54,7 @@ namespace Discord.Commands.Builders |
|
|
if (type.GetTypeInfo().IsValueType) |
|
|
if (type.GetTypeInfo().IsValueType) |
|
|
DefaultValue = Activator.CreateInstance(type); |
|
|
DefaultValue = Activator.CreateInstance(type); |
|
|
else if (type.IsArray) |
|
|
else if (type.IsArray) |
|
|
type = ParameterType.GetElementType(); |
|
|
|
|
|
|
|
|
DefaultValue = Array.CreateInstance(type.GetElementType(), 0); |
|
|
ParameterType = type; |
|
|
ParameterType = type; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|