Inline Volume not working after starting to play the resource

Hey, I have a problem. The inline volume seems to not work after playing the resource. It was working before but now it doesn't work anymore. Here's the code :
let resource = createAudioResource('file.mp3', { inlineVolume: true })
resource.volume.setVolume(1000) // This works

await queue.player.play(resource)
setTimeout(() => {
console.log('coucou')
resource.volume.setVolume(1)
console.log("t")
queue.player.state.resource.volume.setVolume(2)
// These two don't
}, 10000);
let resource = createAudioResource('file.mp3', { inlineVolume: true })
resource.volume.setVolume(1000) // This works

await queue.player.play(resource)
setTimeout(() => {
console.log('coucou')
resource.volume.setVolume(1)
console.log("t")
queue.player.state.resource.volume.setVolume(2)
// These two don't
}, 10000);
2 Replies
d.js toolkit
d.js toolkit2w ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨
I m using @discordjs/voice v0.18.0 and node v22.12.0

Did you find this page helpful?