Hi, I have an issue with my Discord bot: I can't make it play audios. It connects to VC, although the audio doesn't go off.
This is the code:
audio = FFmpegPCMAudio("RadioMoskauShort.mp3"); # played on bot VC join
@bot.command()
async def connect(ctx):
channel = ctx.message.author.voice.channel;
if channel != None:
vc = await channel.connect();
vc.play(audio);
else:
await ctx.reply("You're not in a channel.");
await ctx.message.delete();```
No errors. Just this output:```2025-04-11 20:20:13 INFO discord.voice_state Connecting
to voice...
2025-04-11 20:20:13 INFO discord.voice_state Starting voice handshake... (connection attempt 1)
2025-04-11 20:20:13 INFO discord.voice_state Voice handshake complete. Endpoint found: milan10044.discord.media
2025-04-11 20:20:13 INFO discord.voice_state Voice connection complete.
2025-04-11 20:20:13 INFO discord.player ffmpeg process 4740 successfully terminated with return code of 4294967294.
2025-04-11 20:20:20 INFO discord.voice_state The voice handshake is being terminated for Channel ID 1342508076749815828 (Guild ID 1310208278411608156)```