In a revelation in the Doctrine and Covenants, the Lord references Moroni's visit to Joseph.
Doctrine and Covenants of the Church of the Latter Day Saints: Carefully Selected from the Revelations of God, and Compiled by Joseph Smith Junior. Oliver Cowdery, Sidney Rigdon, Frederick G. Williams (Kirtland, OH: F. G. Williams & Co., 1835), Section L, 180, The Joseph Smith Papers website, accessed August 11, 2021
[A]nd with Moroni, whom I have sent unto you to reveal the book of Mormon, containing the fulness of my everlasting gospel; to whom I have committed the keys of the record of the stick of Ephraim