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?
5 Replies
d.js docs
d.js docs3y ago
• 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.
</> Idris
</> Idris3y ago
set selfDeaf to false in joinVoiceChannel options
변상훈
변상훈OP3y ago
const connection = joinVoiceChannel({
channelId: message.member.voice.channelId,
guildId: message.guildId,
adapterCreator: message.guild.voiceAdapterCreator,
selfDeaf: false,
})
const connection = joinVoiceChannel({
channelId: message.member.voice.channelId,
guildId: message.guildId,
adapterCreator: message.guild.voiceAdapterCreator,
selfDeaf: false,
})
Still the same problem
</> Idris
</> Idris3y ago
what was it?
변상훈
변상훈OP3y ago
No sound play Didn't play anything the problem solved! thx!

Did you find this page helpful?