title: Is there any way to have a discord bot join a server with accept_invite or anything like that?
body: <p>Note: I'm using discord.py 0.16.12</p>
  
  <p>I am wondering if there's any way to have a bot join a server within the code. Like there's a command that would be like: </p>
  
  <pre><code>@client.command(pass_context=True)
  async def join(ctx, invite):
      client.join(invite)
  </code></pre>
  
  <p>I've already tried</p>
  
  <pre><code>@client.command()
  async def joinserver(mahlink):
      await client.accept_invite(mahlink)
  </code></pre>
  
  <p>It dosen't work.
  This is the only thing I could find on google about this</p>
  
  <p>Also, running the <code>accept_invite</code> gives the following:</p>
  
  <blockquote>
    <p>discord.errors.Forbidden: FORBIDDEN (status code: 403): Bots cannot use this endpoint</p>
  </blockquote>