title: TypeError: Cannot read property 'ban' of null
body: <p><strong>Purpose:</strong></p>
  <p>To ban members ID's from an array in a <code>json</code> file</p>
  <p><strong>Code:</strong></p>
  <pre><code>if (message.content.startsWith(prefix + 'idfk')){
              const IDs = require(&quot;./IDs.json&quot;)
  
              message.guild.member(IDs).ban({
                  reason: &quot;testing&quot;,
              })
          }
  </code></pre>
  <p><em><code>IDs.json</code></em> contains an array of IDs.</p>
  <p><strong>Error:</strong></p>
  <pre><code>(node:5420) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'ban' of null
  </code></pre>
  <p>Could you please tell me why this is happening what I could do to solve it?</p>