mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 19:50:55 +00:00
Docs
This commit is contained in:
parent
780e67d19f
commit
b83e12634c
2 changed files with 14 additions and 0 deletions
|
|
@ -161,6 +161,13 @@ class StreamDispatcher extends Writable {
|
||||||
this.emit('speaking', value);
|
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() {
|
get volume() {
|
||||||
return this.player.streams.volume ? this.player.streams.volume.volume : 1;
|
return this.player.streams.volume ? this.player.streams.volume.volume : 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,13 @@ class VolumeInterface extends EventEmitter {
|
||||||
this.setVolume(volume || 1);
|
this.setVolume(volume || 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether or not the volume of this stream is editable
|
||||||
|
*/
|
||||||
|
get volumeEditable() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current volume of the broadcast
|
* The current volume of the broadcast
|
||||||
* @readonly
|
* @readonly
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue