fix: don't manually raise CommandExecuted on exceptions

this resolves #1212.
This commit is contained in:
Christopher Felegy
2018-12-21 14:57:05 -05:00
parent f2ddf517f7
commit aec710535f

View File

@@ -274,7 +274,6 @@ namespace Discord.Commands
await Module.Service._cmdLogger.ErrorAsync(wrappedEx).ConfigureAwait(false); await Module.Service._cmdLogger.ErrorAsync(wrappedEx).ConfigureAwait(false);
var result = ExecuteResult.FromError(ex); var result = ExecuteResult.FromError(ex);
await Module.Service._commandExecutedEvent.InvokeAsync(this, context, result).ConfigureAwait(false);
if (Module.Service._throwOnError) if (Module.Service._throwOnError)
{ {