title: i'm having trouble with permission overwrite in discord.js
body: <p>i am creating a "ticket bot" in discord.js and have got most of it working but need help with <code>permission overwrites</code></p>
  
  <p>the discordjs guide shows this code  but when run it creates the channel but does not do permissions.</p>
  
  <pre class="lang-js prettyprint-override"><code>        guild.createChannel('new-channel', 'text', [
              {
                  id: guild.defaultRole.id,
                  deny: ['VIEW_CHANNEL'],
              },
              {
                  id: user.id,
                  allow: ['VIEW_CHANNEL'],
              },
          ]);
      }
  </code></pre>