private async Task Commands_CommandExecuted(CommandsNextExtension extension, CommandExecutionEventArgs e) { if (LogExecutedCommands) { _logger.Info(GetCommandInfo(e.Context)); await _diagnosticService.AddExecutedCommandAsync(e.Command, e.Context.Guild); } }