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:08:06 INFO discord.player ffmpeg process 9604 successfully terminated with return code of 4294967294.
2025-04-11 20:08:14 INFO discord.voice_state The voice handshake is being terminated for Channel ID 1342508076749815828 (Guild ID 1310208278411608156)```