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);
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user