title: Trying to move users between voice channels using discord.py bot
body: <p><strong>For anybody having the same problem, you can check below for all the comments but here is a TD;DR:</strong> First, I got the channel I wanted and saved it into a variable, then I got the author of the message and finally I used the move_to code.</p>
  <p><code>async def moveplayer(ctx): channel = bot.get_channel(738705076557709392) member = ctx.message.author await member.move_to(channel)</code></p>
  <p>I really enjoy doing coding, but I'm not the best at it. Recently, I've been trying to get better at using python for things that will actually help me, rather than fun text-based games. What I'm trying to do now is I want the bot to move a user from one voice channel to another when a specific command is used. I've been trying to find solutions all over stackoverflow and the rest of the internet, but everything I've come across hasn't worked for me. Below are some things that I've already tried. I've also tried using <code>client = discord.Client()</code> rather than <code>bot = commands.Bot(command_prefix='hp!')</code>, but nothing seems to work.</p>
  <pre><code>@bot.command(name='moveme')
  @commands.has_role('HpBotAccess')
  async def moveplayer(*ctx,**message):
      voiceChannel = bot.get_channel(738704912912744450)
      await client.move_to(message.author, voiceChannel.id)
  </code></pre>
  <pre><code>@bot.command(name='moveme')
  @commands.has_role('HpBotAccess')
  async def moveplayer(message):
      channel = discord.utils.find(lambda x: x.name == 'Vibin 3', message.server.channels)
      await client.move_member(message.author, channel)
  </code></pre>
  <pre><code>@bot.command(name='moveme')
  @commands.has_role('HpBotAccess')
  async def moveplayer(message):
      await move_to(716193638433947690)
  </code></pre>
  <p>I've also tried reading the docs but I don't really understand them, and so the above is just what I've tried experimenting with from other posts/a little bit of the docs. If you do have a solution or can help me please post it! Thank you!</p>
  <p>P.S. I realise this question has already been posted before however the solutions on other posts didn't work for me...</p>