Set initial volume without enabling inlineVolume
Im using @discordjs/voice and would like set the initial volume for playback because the default is way too loud. But I have no need to update it on the fly and don't want the extra overhead of turning on inlineVolume. Is there a way to just set the initial volume?
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!
- ✅
Marked as resolved by OPwell if you're able to modify the audio source itself, you can just modify the audio
but if you mean that you'd like to set the volume once every time the resource is created, then stop needing the
VolumeTransformer
, then no there isn't a means of doing this
side note #djs-voice probably would've been a better place for thisThank you for the response. Apologies for putting this in the wrong channel. One follow up question: As a discord user I have the ability to set my input volume within my own user settings. Is there a way to do this for the bot account? (programatically or otherwise)
that's an entirely client-side setting, not a part of the api, so no
I also imagine that it behaves very similarly to the
VolumeTransformer
Ah. That's unfortunate. Thanks for your time.