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

Brawaru picture Brawaru  路  3Comments

Alipoodle picture Alipoodle  路  3Comments

Dmitry221060 picture Dmitry221060  路  3Comments

DatMayo picture DatMayo  路  3Comments

BrandonCookeDev picture BrandonCookeDev  路  3Comments