Browse Source

Add return statement to precondition handling (#2062)

tags/3.4.0
Cenk Ergen GitHub 3 years ago
parent
commit
3e52fab67b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Discord.Net.Commands/CommandService.cs

+ 1
- 0
src/Discord.Net.Commands/CommandService.cs View File

@@ -557,6 +557,7 @@ namespace Discord.Commands
if (matchResult.Pipeline is PreconditionResult preconditionResult)
{
await _commandExecutedEvent.InvokeAsync(matchResult.Match.Value.Command, context, preconditionResult).ConfigureAwait(false);
return preconditionResult;
}

return matchResult;


Loading…
Cancel
Save