Add return statement to precondition handling (#2062)
This commit is contained in:
@@ -557,6 +557,7 @@ namespace Discord.Commands
|
|||||||
if (matchResult.Pipeline is PreconditionResult preconditionResult)
|
if (matchResult.Pipeline is PreconditionResult preconditionResult)
|
||||||
{
|
{
|
||||||
await _commandExecutedEvent.InvokeAsync(matchResult.Match.Value.Command, context, preconditionResult).ConfigureAwait(false);
|
await _commandExecutedEvent.InvokeAsync(matchResult.Match.Value.Command, context, preconditionResult).ConfigureAwait(false);
|
||||||
|
return preconditionResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
return matchResult;
|
return matchResult;
|
||||||
|
|||||||
Reference in New Issue
Block a user