Remove Preconditions check from Command.Execute

Preconditions are still handled by CommandService.Execute
This commit is contained in:
Finite Reality
2016-08-04 21:48:44 +01:00
parent 046d56cab5
commit 1e72eca34a

View File

@@ -73,10 +73,6 @@ namespace Discord.Commands
if (!parseResult.IsSuccess)
return ExecuteResult.FromError(parseResult);
var precondition = await CheckPreconditions(msg).ConfigureAwait(false);
if (!precondition.IsSuccess) // TODO: should we have to check this here, or leave it entirely to the bot dev?
return ExecuteResult.FromError(precondition);
try
{
await _action.Invoke(msg, parseResult.Values);//Note: This code may need context