From 1e72eca34a76226c7daf6dc777f52a2569f048dd Mon Sep 17 00:00:00 2001 From: Finite Reality Date: Thu, 4 Aug 2016 21:48:44 +0100 Subject: [PATCH] Remove Preconditions check from Command.Execute Preconditions are still handled by CommandService.Execute --- src/Discord.Net.Commands/Command.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Discord.Net.Commands/Command.cs b/src/Discord.Net.Commands/Command.cs index e3b9367dc..1737cb9af 100644 --- a/src/Discord.Net.Commands/Command.cs +++ b/src/Discord.Net.Commands/Command.cs @@ -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