title: Python Discord.py | invite link on_ready issue
body: <p>With my code i try to send a invite link to the console of each server that it's in, in discord.py's API it says you can write server or channel, but server doesn't seem to work for me.</p>
  
  <pre><code>@client.event
  async def on_ready():
  
      print(client.servers)
      for value in client.servers:
          invitelinknew = await client.create_invite(destination=value)
          print(invitelinknew)
  </code></pre>
  
  <p>i receive these errors:</p>
  
  <pre><code>Ignoring exception in on_ready
  Traceback (most recent call last):
    File "C:\Program Files\Python36\lib\site-packages\discord\client.py", line 307, in _run_event
      yield from getattr(self, event)(*args, **kwargs)
    File "C:/Users/Rasmus/Python/discordbot/botnoggi2.py", line 126, in on_ready
      invitelinknew = await client.create_invite(destination=value)
    File "C:\Program Files\Python36\lib\site-packages\discord\client.py", line 2628, in create_invite
      data = yield from self.http.create_invite(destination.id, **options)
    File "C:\Program Files\Python36\lib\site-packages\discord\http.py", line 198, in request
      raise NotFound(r, data)
  discord.errors.NotFound: NOT FOUND (status code: 404): Unknown Channel
  </code></pre>
  
  <p>My problem uses the on_ready command and for loop to check each server, which is not the same as <a href="https://stackoverflow.com/questions/47521971/when-running-bot-sample-code-i-get-this-error">When running bot sample code, I get this error</a></p>
  
  <p>EDIT:</p>
  
  <pre><code>@client.event
  async def on_ready():
      for server in client.servers:
          channel = next(iter(server.channels))
          invitelinknew = await client.create_invite(destination=channel)
          print(invitelinknew)
  </code></pre>
  
  <p>this code returns:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Program Files\Python36\lib\site-packages\discord\client.py", line 307, in _run_event
      yield from getattr(self, event)(*args, **kwargs)
    File "C:/Users/Rasmus/Python/discordbot/botnoggi2.py", line 126, in on_ready
      invitelinknew = await client.create_invite(destination=channel)
    File "C:\Program Files\Python36\lib\site-packages\discord\client.py", line 2628, in create_invite
      data = yield from self.http.create_invite(destination.id, **options)
    File "C:\Program Files\Python36\lib\site-packages\discord\http.py", line 198, in request
      raise NotFound(r, data)
  discord.errors.NotFound: NOT FOUND (status code: 404): Unknown Channel
  </code></pre>