title: Has Permission function in discord v.13 (discord.js)
body: <p>I tried to change my <code>Clear Command</code> so that it works on Discord v.13. My biggest Problem right now is the <code>hasPermission function</code>. I looked it up on the Discord.js/guide side and followed there instruction. Unfortunately I get this error when trying to change the old <code>hasPermission function</code></p>
  <p>My Intents:</p>
  <pre class="lang-js prettyprint-override"><code>const intents = new Discord.Intents(513);
  
  const client = new Discord.Client({ intents });
  
  </code></pre>
  <p>My Clear Command right now:</p>
  <pre class="lang-js prettyprint-override"><code>client.on(&quot;messageCreate&quot;, async message =&gt; {
  
      if(message.author.bot) return;
      let parts = message.content.split(&quot; &quot;);
  
    
    if(parts[0] == '.c')
      if(!message.member.permissions.has(Permissions.FLAGS.MANAGE_ROLES)) return message.channel.send(&quot;You can't do that&quot;).then(m =&gt; m.delete({ timeout: 5000 }))
      if (!parts[1]) return message.channel.send('You forgot something here!').then(m =&gt; m.delete({ timeout: 3000 }))
      if (isNaN(parts[1])) return message.channel.send('Pls use a number!').then(m =&gt; m.delete({ timeout: 3000 }))
      if (parts[1] &gt; 100) return message.channel.send('You can't delete more than 100 messages').then(m =&gt; m.delete({ timeout: 3000 }))
      if (parts[1] &lt; 2) return message.channel.send('You can't delete less than 2 messages').then(m =&gt; m.delete({ timeout: 3000 }))
      message.channel.bulkDelete(parts[1])
      message.channel.send(`I deleted ${parts[1]} Messages!`).then(m =&gt; m.delete({ timeout: 3000 }))
  
  </code></pre>
  <p>My Error Code is:</p>
  <pre><code>if(!message.member.permissions.has(Permissions.FLAGS.MANAGE_ROLES)) return message.channel.send(&quot;You can't do that&quot;).then(m =&gt; m.delete({ timeout: 5000 })) 
                                ^
  </code></pre>
  <p>^ ReferenceError: Permissions is not defined</p>