Exodus 33:11 ASV

Despite all of Moses' failings and inconsistencies, he was a friend of God. He spoke with Him face to face, as though a friend.

Moreso, in this passage we see the faithfulness of Joshua. Joshua was learning the best keys of leadership from Moses...the first great lesson would be that he must rely upon His God as he led the people.