title: Is there any way to get a bot to create a guild on Discord?
body: <p>I'm using discord.js V12, and I am trying to get my bot to create a guild with a channel in it. However, I'm unable to fix this error &quot;TypeError: channels is not iterable&quot;. This is my current code:</p>
  <pre><code>client.on(&quot;message&quot;, async message =&gt; {
      if(message.content == &quot;?createGuild&quot;) {
          let guild = await client.guilds.create(&quot;Test Guild&quot;, {channels: {id: 1, type: &quot;text&quot;, name: &quot;invite-channel&quot;}}).catch(err =&gt; {console.log(err)});        
          let guildchannel = await guild.channels.find(cha =&gt; cha.name == &quot;invite-channel&quot;);
          let invite = await guildchannel.createInvite({maxAge: 0, unique: true, reason: &quot;Testing.&quot;});
          message.channel.send(`https://discord.gg/${invite.code} is the server I created!`);
      }
  });
  </code></pre>
  <p>Can anyone help me out?</p>