I
I
Igromik2020-07-11 12:25:18
Python
Igromik, 2020-07-11 12:25:18

Why does the bot not enter the voice channel (discord.py)?

Here is a piece of code:

@Client.command(pass_context=True)
async def join(ctx):
  await ctx.author.voice.channel.connect()


Here is the error:
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: RuntimeError: PyNaCl library needed in order to use voice


Why this library, if the bot just needs to go to the voice channel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-07-11
@Alexandre888

the error says that to use the voice functions, the bot needs the PyNaCl library.
To install it, run in a terminal:
pip install pynacl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question