title: Discord py how can I join a voice channel
body: <p>How can I make that my bot (in a cog) join the voice channel where is the user in?
  I have this code:</p>
  <pre><code>@commands.command(name='join')
  async def join(self, ctx):
      channel = ctx.author.channel
  
      voice = discord.utils.get(ctx.guild.voice_channels, name=channel.name)
  
      voice_client = discord.utils.get(self.client.voice_clients, guild=ctx.guild)
  
      if voice_client == None:
          await voice.connect()
      else:
          await voice_client.move_to(channel)
  </code></pre>