Set parameter default value to null instead of an empty string in the bot command lookup
This commit is contained in:
parent
9cfac1ad38
commit
4d97201319
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class CommandLookup
|
||||||
{
|
{
|
||||||
Summary = param.GetCustomAttribute<SummaryAttribute>()?.Text ?? string.Empty,
|
Summary = param.GetCustomAttribute<SummaryAttribute>()?.Text ?? string.Empty,
|
||||||
Type = param.ParameterType.Name,
|
Type = param.ParameterType.Name,
|
||||||
DefaultValue = param.DefaultValue?.ToString() ?? string.Empty
|
DefaultValue = param.DefaultValue?.ToString()
|
||||||
};
|
};
|
||||||
commandInfo.Parameters.Add(paramName, paramInfo);
|
commandInfo.Parameters.Add(paramName, paramInfo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue