From e8074d394a6091b0c36dfab73518d598b3e70592 Mon Sep 17 00:00:00 2001 From: Paulo Anjos Date: Mon, 6 Feb 2017 13:33:43 -0200 Subject: [PATCH] Missing .Value before returning it --- src/Discord.Net.Commands/CommandService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index ba8af97f6..013628dab 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -254,7 +254,7 @@ namespace Discord.Commands { if (commands.Count == 1) return preconditionResult; - else if (secondOption != null) //we already got our last hope, so we can skip + else if (secondOption != null) //we already got our second option, so we can skip continue; } var parseResult = await commands[i].ParseAsync(context, searchResult).ConfigureAwait(false); @@ -276,7 +276,7 @@ namespace Discord.Commands { if (commands.Count == 1) return parseResult; - else if (secondOption != null) //we already got our last hope, so we can skip + else if (secondOption != null) //we already got our second option, so we can skip continue; } } @@ -288,7 +288,7 @@ namespace Discord.Commands } if (secondOption != null) - return secondOption; + return secondOption.Value; return SearchResult.FromError(CommandError.UnknownCommand, "This input does not match any overload."); } }