Home>
Sorry for the beginner question.
I'm making a bot on Discord.py
I get the following error message when connecting to a voice channel
socket.gaierror: [Errno -2] Name or service not known
Corresponding source code
# If i say "/ k join", join the "voice channel"
if message.content =='/ k join':
vchannel = message.author.voice.channel
await vchannel.connect ()
When I run this code, I can connect to the voice channel, but I get an error
Discord.py 1.4.1
Development environment repl.it
-
Answer # 1
Related articles
- python - i get the error "no attribute'connect'" when connecting a signal to a slot
- python - i want to create a text voice channel creation function with discordpy
- python - the py file cannot be executed in the task scheduler 0x2 error
- python - categorical_crossentoropy error does not resolve
- readcsv error in python
- python - i want to display an image with pysimplegui, but an error occurs
- python - error when scraping with selenium and firefox
- [python] graphviz output format error
- python 3x - best estimator: i get an error with no syntax, so please tell me what to do
- [python] i don't know how to solve the error
- python - an error has occurred in yolo v3
- python - idle cannot resolve the "rootgeometry" error
- python - tuple error does not resolve
- python max () arg is an empty sequence and an error occurs and it cannot be processed well
- python 3x - error after changing to csv file
- python error code how to deal with
- python - in raspberry pi, the error occurs only in the case of the automatic start program using systemd
- python - error in image binarization using cv2adaptivethreshold function
- python - sklearn, svm error
Related questions
- python : @ bot.command doesn't work
- python : Discord.py find out id of created voice canada
- python : Custom channel for discord.py messages
- How to make a timer in Python for the WHILE cycle so that it does not block the rest of the code (Discord Bot Python)
- python : It is necessary that the name of a person would receive from the BOT reaction
- python : Error when changing rights EVERYONE Discord.py
- Python YouTube-DL. ERROR: NO Video Formats Found; Warning: Unable to Extract Player URL;
- python : Different settings on different servers discord.py
Try to fix it as above. You can probably do it.