#Bot don't plays audio

11 messages · Page 1 of 1 (latest)

sour wigeon
#

pls help me
Code:```js
let connection = DiscordVoice.joinVoiceChannel({
channelId: interaction.member.voice.channelId,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator,
})

    let resource = DiscordVoice.createAudioResource("http://wdr-1live-live.icecast.wdr.de/wdr/1live/live/mp3/128/stream.mp3", {
        inlineVolume: true
    })

    let player = DiscordVoice.createAudioPlayer()
    connection.subscribe(player)
    player.play(resource)```

Versions:
"@discordjs/opus": "^0.8.0",
"@discordjs/voice": "^0.13.0",
"discord.js": "^14.5.0",
node.js: v18.4.0

median perch
#

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

sour wigeon
#

pls help

vivid wadi
sour wigeon
#

but the bot plays no sound

vivid wadi
#

the link you sent is a bit werid the way it works so try another link maybe?

#

ok i tested it with my code and it does work so something is probally wrong with the code here

#

i would say make sure the intents for voice are added too that might be why

sour wigeon