Player emit idle event without playing

let connection = joinVoiceChannel({
channelId: voiceChannel.id,
guildId: voiceChannel.guild.id,
adapterCreator: voiceChannel.guild.voiceAdapterCreator,
group: client.user.id,
});

let player = createAudioPlayer();
let resource = createAudioResource(suraURL); // suraurl is a valid mp3


connection.subscribe(player);
player.play(resource);
let connection = joinVoiceChannel({
channelId: voiceChannel.id,
guildId: voiceChannel.guild.id,
adapterCreator: voiceChannel.guild.voiceAdapterCreator,
group: client.user.id,
});

let player = createAudioPlayer();
let resource = createAudioResource(suraURL); // suraurl is a valid mp3


connection.subscribe(player);
player.play(resource);
1 Reply
Youssef
YoussefOP17mo ago
Discord.js: 14.11.0 Node: v16.17.0 it's a url like this one https://server12.mp3quran.net/maher/004.mp3 nvm i fixed the error this solution fixed that for me https://discord.com/channels/222078108977594368/1126028387224395846
Want results from more Discord servers?
Add your server