title: Discord.js V13 array is not function
body: <p>In version 12 of discord.js I have made a command called <code>clear</code> and that command applies a filter if a user is specified.</p>
  <p>I updated my code to v13 and everything works fine but I have a problem with my <code>clear</code> command.</p>
  <p>I checked their docs and as far as I can see they just removed the <code>array</code> method and I couldn't find what to replace it with.</p>
  <p>My aim is, i want to fetch specified user's messages. For example if amount is 20 i want to fetch user's 20 messages and then delete those messages.</p>
  <p>My code:</p>
  <pre class="lang-js prettyprint-override"><code>message.channel.messages.fetch().then((msgs) =&gt; {
      const UserMessages = msgs
          .filter((m) =&gt; m.author.id === member.id)
          .array()
          .slice(0, messages); // this line throws error: array is not function.
  
      message.channel.bulkDelete(UserMessages, true).then((data) =&gt; {
          // rest of my code
      });
  });
  </code></pre>