Browse Source

fix: don't manually raise CommandExecuted on exceptions

this resolves #1212.
tags/2.0
Christopher Felegy 6 years ago
parent
commit
aec710535f
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      src/Discord.Net.Commands/Info/CommandInfo.cs

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

@@ -274,7 +274,6 @@ namespace Discord.Commands
await Module.Service._cmdLogger.ErrorAsync(wrappedEx).ConfigureAwait(false);

var result = ExecuteResult.FromError(ex);
await Module.Service._commandExecutedEvent.InvokeAsync(this, context, result).ConfigureAwait(false);

if (Module.Service._throwOnError)
{


Loading…
Cancel
Save