mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +00:00
parent
28dc3e6a2e
commit
4e79a885b8
1 changed files with 0 additions and 6 deletions
|
|
@ -242,8 +242,6 @@ class VoiceBroadcast extends VolumeInterface {
|
||||||
* @returns {VoiceBroadcast}
|
* @returns {VoiceBroadcast}
|
||||||
*/
|
*/
|
||||||
playArbitraryInput(input, { seek = 0, volume = 1, passes = 1 } = {}) {
|
playArbitraryInput(input, { seek = 0, volume = 1, passes = 1 } = {}) {
|
||||||
this.guaranteeOpusEngine();
|
|
||||||
|
|
||||||
const options = { seek, volume, passes, input };
|
const options = { seek, volume, passes, input };
|
||||||
return this._playTranscodable(input, options);
|
return this._playTranscodable(input, options);
|
||||||
}
|
}
|
||||||
|
|
@ -272,10 +270,6 @@ class VoiceBroadcast extends VolumeInterface {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
guaranteeOpusEngine() {
|
|
||||||
if (!this.opusEncoder) throw new Error('Couldn\'t find an Opus engine.');
|
|
||||||
}
|
|
||||||
|
|
||||||
_startPlaying() {
|
_startPlaying() {
|
||||||
if (this.tickInterval) clearInterval(this.tickInterval);
|
if (this.tickInterval) clearInterval(this.tickInterval);
|
||||||
// Old code?
|
// Old code?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue