title: Check if command is executed
body: <p>I have a problem with my restriction system for commands.<br>
  The message 'you don't have permission' will only run once (when you don't have the role). I'm aware that if you don't set a var (in this case <code>checkrole</code>) the code will be executed once however, I don't know how to check when a command is executed.</p>
  
  <p>So I could do something like this:</p>
  
  <pre><code>if  (command === ' ') {
      checkrole = false
  }
  </code></pre>
  
  <p>Code of interest:</p>
  
  <pre><code>if (!message.member.roles.some(r =&gt; ["someone"].includes(r.name.toLowerCase())) &amp;&amp; checkrole === false) {
      checkrole = true;
      return message.channel.send('Sorry, but you do not have the **permissions** to do that.');
    }
  </code></pre>
  
  <p>(var checkrole is defined - it begins as false (<code>var checkrole = false;</code>))</p>
  
  <p>Kind regards,
  Ruben</p>