Discord.js: How i can use ".setVolume(volume)" method?

Created on 27 Sep 2016  路  3Comments  路  Source: discordjs/discord.js

Is possible to help me for .setVolume(volume) method on StreamDispatcher's class?

question (please use Discord instead)

Most helpful comment

voiceChannel.join()
.then(connection => {
  const stream = something;
  const dispatcher = connection.playStream(stream);

  dispatcher.setVolume(0.5);
})
.catch(console.error);

All 3 comments

voiceChannel.join()
.then(connection => {
  const stream = something;
  const dispatcher = connection.playStream(stream);

  dispatcher.setVolume(0.5);
})
.catch(console.error);

thank!

In future, please direct "how to" questions to our official discord server

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DatMayo picture DatMayo  路  3Comments

shukriadams picture shukriadams  路  3Comments

tom-barnes picture tom-barnes  路  3Comments

PassTheMayo picture PassTheMayo  路  3Comments

xCuzImPro picture xCuzImPro  路  3Comments