Browse Source

Remove Preconditions check from Command.Execute

Preconditions are still handled by CommandService.Execute
pull/179/head
Finite Reality 9 years ago
parent
commit
1e72eca34a
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      src/Discord.Net.Commands/Command.cs

+ 0
- 4
src/Discord.Net.Commands/Command.cs 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


Loading…
Cancel
Save