title: RuntimeError: PyNaCl library needed in order to use voice
body: <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Pradeep Tejwani\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\bot.py&quot;, line 892, in invoke
      await ctx.command.invoke(ctx)
    File &quot;C:\Users\Pradeep Tejwani\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py&quot;, line 797, in invoke
      await injected(*ctx.args, **ctx.kwargs)
    File &quot;C:\Users\Pradeep Tejwani\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py&quot;, line 92, in wrapped
      raise CommandInvokeError(exc) from exc
  discord.ext.commands.errors.CommandInvokeError: Command raised an exception: RuntimeError: PyNaCl library needed in order to use voice
  </code></pre>
  <p>This is my error even though I have both the python libraries <code>pynacl</code> and <code>discord.py[voice]</code> installed. I tried it so many times but still got same error. I have even updated my library to newer versions but nothing changed.</p>
  <p>Code:</p>
  <pre><code>@bot.command()
  async def join(ctx):
      channel = ctx.message.author.voice.channel
      voice = get(bot.voice_clients, guild=ctx.guild)
  
      if voice and voice.is_connected():
          await voice.move_to(channel)
      else:
          voice = await channel.connect()
  
      await voice.disconnect()
  
      if voice and voice.is_connected():
          await voice.move_to(channel)
      else:
          voice = await channel.connect()
          print(f&quot;The bot has connected to {channel}\n&quot;)
  
      await ctx.send(f&quot;Joined {channel}&quot;)
  
  #leave cmd
  @bot.command()
  async def leave(ctx):
      channel = ctx.message.author.voice.channel
      voice = get(bot.voice_clients, guild=ctx.guild)
  
      if voice and voice.is_connected():
          await voice.disconnect()
          print(f&quot;The bot has left {channel}&quot;)
          await ctx.send(f&quot;Left {channel}&quot;)
      else:
          print(&quot;Bot was told to leave voice channel, but was not in one&quot;)
          await ctx.send(&quot;Don't think I am in a voice channel&quot;)
  </code></pre>