mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
Docs
This commit is contained in:
@@ -161,6 +161,13 @@ class StreamDispatcher extends Writable {
|
||||
this.emit('speaking', value);
|
||||
}
|
||||
|
||||
get volumeEditable() { return Boolean(this.player.streams.volume); }
|
||||
|
||||
/**
|
||||
* Whether or not the Opus bitrate of this stream is editable
|
||||
*/
|
||||
get bitrateEditable() { return this.streams.opus && this.streams.opus.setBitrate; }
|
||||
|
||||
get volume() {
|
||||
return this.player.streams.volume ? this.player.streams.volume.volume : 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user