title: How can I make the bot join on the channel?
body: <p>Somebody can check this code and tell me what's wrong with this?</p>
  <pre class="lang-py prettyprint-override"><code>@client.command()
  async def join(ctx):
    if (ctx.author.voice):
      channel = ctx.message.author.voice.channel
      await channel.connect()
    else:
      await ctx.send(&quot;NO&quot;)
  </code></pre>
  <p><strong>Error:</strong></p>
  <p><img src="https://i.stack.imgur.com/J285Q.png" alt="1" /></p>