title: AttributeError: 'NoneType' object has no attribute 'send' Discord.py rewrite
body: <p>I'm trying to send a message to a specific channel. I have still not been able to figure out how to do this. Help is greatly appreciated.</p>
  
  <pre><code>import keep_alive
  import discord
  
  client = discord.Client()
  
  channel = client.get_channel('ID'`enter code here`)
  
  @client.event
  async def on_ready():
      print('We have logged in as {0.user}'.format(client))
  
  @client.event
  async def on_message(message):
      if message.author == client.user:
          return
  
      if message.content.startswith('$hello'):
          await channel.send('hello')
  
  
  keep_alive.keep_alive()
  
  client.run('ID')
  </code></pre>