From 4d97201319d6d5e1341539d02884fbc2f16434fd Mon Sep 17 00:00:00 2001 From: Daan Boerlage Date: Tue, 9 Nov 2021 01:25:42 +0100 Subject: [PATCH] Set parameter default value to null instead of an empty string in the bot command lookup --- src/Core/BotCommandLookup/CommandLookup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/BotCommandLookup/CommandLookup.cs b/src/Core/BotCommandLookup/CommandLookup.cs index 09fadf2..62369c6 100644 --- a/src/Core/BotCommandLookup/CommandLookup.cs +++ b/src/Core/BotCommandLookup/CommandLookup.cs @@ -73,7 +73,7 @@ public class CommandLookup { Summary = param.GetCustomAttribute()?.Text ?? string.Empty, Type = param.ParameterType.Name, - DefaultValue = param.DefaultValue?.ToString() ?? string.Empty + DefaultValue = param.DefaultValue?.ToString() }; commandInfo.Parameters.Add(paramName, paramInfo); }