title: Discord.py modmail system
body: <p>Basically I want to make a modmail system which once someone dms a bot, it opens a channel where the person who DMed the bot can have a conversation through the bot. Mods would communicate through the channel.</p>
  <p>The issue is, I know how to do most of the things, but I'm stuck at one of them. Here is my code:</p>
  <pre class="lang-py prettyprint-override"><code>@client.event()
  async def on_message(message):
      if str(message.channel.type) == &quot;private&quot;:
          guild = client.get_guild()
          await guild.create_text_channel(ctx.author.name)
      else:
          return
  </code></pre>
  <p>So that is my code which basically creates a channel named by the user's name. Now what I'm stuck in is: How do I make it send the message to that specific channel, how do I get the channel's ID or name after it got created?</p>