Unknown overload should return UnknownCommand instead of ParseFailed

This commit is contained in:
RogueException
2016-08-17 10:07:26 -03:00
parent 625f78504c
commit 0b25554c31
2 changed files with 5 additions and 3 deletions

View File

@@ -14,8 +14,10 @@
ObjectNotFound,
MultipleMatches,
//Preconditions
UnmetPrecondition,
//Execute
Exception,
UnmetPrecondition
Exception
}
}

View File

@@ -233,7 +233,7 @@ namespace Discord.Commands
return executeResult;
}
return ParseResult.FromError(CommandError.ParseFailed, "This input does not match any overload.");
return SearchResult.FromError(CommandError.UnknownCommand, "This input does not match any overload.");
}
}
}