#My bot stops playing music

3 messages · Page 1 of 1 (latest)

cursive token
#

After round about a minute it stops playing music, how can i keep it playing music?
my discord js version is 14.0.3 and discord voice version 0.11.0 and discordjs/opus 0.8.0, it doesnt show any error.
My code is this:

    channelId: message.member.voice.channel.id,
    guildId: message.member.voice.channel.guildId,
    adapterCreator: message.guild.voiceAdapterCreator,
    selfDeaf: true
  });
  const player = createAudioPlayer();
  let resource = createAudioResource("mystreamurl");
  connection.subscribe(player);
  connection.on(VoiceConnectionStatus.Ready, () => {
    player.play(resource);
  });```
ionic urchinBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

strong sable
#

this was fixed in /voice 0.15.0 (but latest is 0.16.0)
there were also critical fixes released in later versions of discord.js unrelated to this issue, so please consider updating both discord.js and @discordjs/voice