title: Discord.js: What method should I use to ban everyone whose username contains 'x'?
body: <p>My server has experienced massive raids and so I wish to make a command that can ban all members whose usernames contain a certain word.</p>
  <p><strong>The main problem is: I don't understand what method to use to ban everyone whose username contains argument.</strong>
  I don't ask for you to create a command for me.</p>
  <p><strong>Code</strong></p>
  <pre class="lang-js prettyprint-override"><code>let target_word = args[0];
  
      message.guild.members.fetch().then(fetchedMembers =&gt; {
          const target_users = fetchedMembers.filter(member =&gt; member.user.username.includes(target_word))
          target_users.ban({reason:reason})
          })`
  </code></pre>
  <p>Return an error:</p>
  <blockquote>
  <p>(node:673) UnhandledPromiseRejectionWarning: TypeError: target_users.ban is not a function</p>
  </blockquote>
  <p><strong>For example</strong></p>
  <p><code>!ban_all raid</code> to ban all members whose names contain the word <code>raid</code></p>