private async Task OnCommandExecutedAsync(Optional <CommandInfo> command, ICommandContext context, IResult result) { if (!string.IsNullOrEmpty(result?.ErrorReason)) { await context.Channel.SendMessageAsync($"Oops! {result.ErrorReason}"); if (command.IsSpecified) { var commandDetails = new CommandDetails(command.Value); var response = commandDetails.ToResponse() as EmbedBuilder; response.ApplyStandardFormat(context.Message.Author.Username); await context.Channel.SendMessageAsync(embed : response.Build() as Embed); } } if (command.IsSpecified) { await _logService.Log(context.Message); } }