title: Discord.js. Cannot add permissions to slash commands
body: <p>Im trying to add permission to commands in such way, that only users with specific role can use it. At first im creating commands like its said in documentation.</p>
  <p>Then Im trying to get each command and adding to them new permissions:</p>
  <pre class="lang-js prettyprint-override"><code>await commands.forEach(command =&gt; {
      const permissions2 = [
          {
              id: guild.roles.everyone.id,
              type: 'ROLE',
              permission: false,
          }
      ];
      const permissions1 = [
          {
              id: botRole.id,
              type: 'ROLE',
              permission: true,
          },
      ];
  
      console.log(`Changing command ${command.id}`);
      command.permissions.add(permissions2);
      command.permissions.add(permissions1);
  });
  </code></pre>
  <p>But whatever I do I get this error: <code>TypeError [INVALID_TYPE]: Supplied permissions is not an Array of ApplicationCommandPermissionData. </code>
  Ive also tried running this code as shown in documentation but got same result:</p>
  <pre class="lang-js prettyprint-override"><code>await commands.forEach(command =&gt; {
      ...
      console.log(`Changing command ${command.id}`);
      command.permissions.add({permissions2});
      command.permissions.add({permissions1});
  });
  </code></pre>