title: Get count of member's messages in channel in discord.js
body: <p>Is there any way how to count messages of specified user in specified Discord channel in discord.js? When I use:</p>
  <pre><code>const countMyMessages = async (channel, member) =&gt; {
      const messages = await channel.messages.fetch()
      const myMessages = message.filter(m =&gt; m.author.id === member.id)
      console.log(myMessages.size)
  }
  </code></pre>
  <p>Only 50 messages are fetched, so I can't count all messages of user. And option <code>limit</code> can have max value 100. <code>/guilds/guild_id/messages/search</code> API on the other hand is not available for bots.</p>