title: messages.array is not a function in discord.js v13
body: <p>I have this worked which worked fine for v12 of discord.js , but doesn't work in v13. Any ideas? This is a part of code, everything is closed later on.</p>
  <pre><code> interaction.channel.messages.fetch().then(async messages =&gt; {
  
        let finalArray = [];
  
        const putInArray = async (data) =&gt; finalArray.push(data);
        const handleTime = (timestamp) =&gt; moment(timestamp).format(`DD/MM/YYYY - hh:mm:ss a`).replace(&quot;pm&quot;, &quot;PM&quot;).replace(&quot;am&quot;, &quot;AM&quot;);
  
        for (const message of messages.array().reverse()) await putInArray(`${handleTime(message.createdTimestamp)} ${message.author.tag}: ${message.content}`);
  </code></pre>
  <p>Solution from <a href="https://discord.js.org/#/docs/main/stable/class/MessageManagerscrollTo=fetch" rel="nofollow noreferrer">https://discord.js.org/#/docs/main/stable/class/MessageManagerscrollTo=fetch</a>
  not working</p>