Remove Preconditions check from Command.Execute
Preconditions are still handled by CommandService.Execute
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user