Unknown overload should return UnknownCommand instead of ParseFailed
This commit is contained in:
@@ -14,8 +14,10 @@
|
|||||||
ObjectNotFound,
|
ObjectNotFound,
|
||||||
MultipleMatches,
|
MultipleMatches,
|
||||||
|
|
||||||
|
//Preconditions
|
||||||
|
UnmetPrecondition,
|
||||||
|
|
||||||
//Execute
|
//Execute
|
||||||
Exception,
|
Exception
|
||||||
UnmetPrecondition
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ namespace Discord.Commands
|
|||||||
return executeResult;
|
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