bot mute when join voice channel.
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?
await wait(10000) console.log("time") connection.destroy(); } } can you check my code?
5 Replies
• 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.set
selfDeaf
to false
in joinVoiceChannel
options
Still the same problem
what was it?
No sound play
Didn't play anything
the problem solved! thx!