title: How would I make my Python 3.6.1 Discord bot create a new text channel in a server?
body: <p>I have been reading the documentation. The documentation shows this example:</p>
  
  <p><code>channel = await guild.create_text_channel('cool-channel')</code></p>
  
  <p>I need to figure out what to do with <code>guild</code> so that there is no <code>NameError</code> regarding <code>guild</code>. (Do I have to import <code>guild</code>? etc.)</p>
  
  <p>Documentations:</p>
  
  <ul>
  <li><p><a href="http://discordpy.readthedocs.io/en/rewrite/api.html#discord.Guild.create_text_channel" rel="nofollow noreferrer">http://discordpy.readthedocs.io/en/rewrite/api.html#discord.Guild.create_text_channel</a></p></li>
  <li><p><a href="http://discordpy.readthedocs.io/en/rewrite/api.html#guild" rel="nofollow noreferrer">http://discordpy.readthedocs.io/en/rewrite/api.html#guild</a></p></li>
  </ul>