Unknown overload should return UnknownCommand instead of ParseFailed
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
ObjectNotFound,
|
||||
MultipleMatches,
|
||||
|
||||
//Preconditions
|
||||
UnmetPrecondition,
|
||||
|
||||
//Execute
|
||||
Exception,
|
||||
UnmetPrecondition
|
||||
Exception
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user