Can't play audio using discord.py
Hi, when i try to play audio using discord.py, the bot correctly connects to the voice channel, but then nothing happens, and i dont get any error message... Here is my code:
if msg.startswith("!join"):
channel = message.author.voice.channel
voice = await channel.connect()
voice.play(discord.FFmpegPCMAudio("TEST.wav"))
have i done sthg wrong?
Voters
Try this tutorial: https://replit.com/talk/announcements/Discord-Music-Bots-Native-Support/50173
this code isnt working, i get the error YouTube said: Unable to extract video data
this code isnt working, i get the error:
YouTube said: Unable to extract video data