title: Send message to channel discord.py
body: <p>I'm having trouble with sending a message to a specific channel, here's the code:</p>
  <pre class="lang-py prettyprint-override"><code>client = discord.Client()
  
  @tasks.loop(seconds=10)
  async def test2():
    channel = client.get_channel(836633672240332820)
    await channel.send('test')
    print('test')
  
  test2.start()
  </code></pre>
  <p>I'm getting the following error:</p>
  <pre><code>Unhandled exception in internal background task 'test2'.
  Traceback (most recent call last):
    File &quot;/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/tasks/__init__.py&quot;, line 101, in _loop
      await self.coro(*args, **kwargs)
    File &quot;main.py&quot;, line 297, in test2
      await channel.send('test')
  AttributeError: 'NoneType' object has no attribute 'send'
  
  </code></pre>
  <p>Any1 able to help?</p>