From a491bd3a67d24658863cbb77c3e2ba6ce7c8b048 Mon Sep 17 00:00:00 2001 From: Casino Boyale Date: Thu, 8 Nov 2018 19:43:58 +0000 Subject: [PATCH] Fixed CommandExecuted firing twice for failed RuntimeResults --- src/Discord.Net.Commands/CommandService.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index 432b75f27..933c5c100 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -603,8 +603,6 @@ namespace Discord.Commands //If we get this far, at least one parse was successful. Execute the most likely overload. var chosenOverload = successfulParses[0]; var result = await chosenOverload.Key.ExecuteAsync(context, chosenOverload.Value, services).ConfigureAwait(false); - if (!result.IsSuccess) // succesful results raise the event in CommandInfo#ExecuteInternalAsync (have to raise it there b/c deffered execution) - await _commandExecutedEvent.InvokeAsync(chosenOverload.Key.Command, context, result); return result; } }