mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,13 @@ class VolumeInterface extends EventEmitter {
|
||||
this.setVolume(volume || 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether or not the volume of this stream is editable
|
||||
*/
|
||||
get volumeEditable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* The current volume of the broadcast
|
||||
* @readonly
|
||||
|
||||
Reference in New Issue
Block a user