#bot mute when join voice channel.

9 messages · Page 1 of 1 (latest)

vernal sleet
#

const connection = joinVoiceChannel({
channelId: message.member.voice.channelId,
guildId: message.guildId,
adapterCreator: message.guild.voiceAdapterCreator
})

  const player = createAudioPlayer()
  const resource = createAudioResource('../music/123.mp3', {
    metadata: {
      title: 'A good song!',
    },
  });

  connection.subscribe(player)

  player.play(resource)

await wait(10000)
console.log("time")
connection.destroy();
}
}

can you check my code?

lyric ermineBOT
#

• 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.

celest hollow
#

set selfDeaf to false

#

in joinVoiceChannel options

vernal sleet
#

Still the same problem

celest hollow
vernal sleet
#

Didn't play anything