Browse Source

Changed to just checking the result type

pull/1192/head
Casino Boyale 6 years ago
parent
commit
65db9f9d64
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net.Commands/CommandService.cs

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

@@ -603,6 +603,8 @@ 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 && result is ExecuteResult)
await _commandExecutedEvent.InvokeAsync(chosenOverload.Key.Command, context, result);
return result;
}
}


Loading…
Cancel
Save