Remove unused VoiceBroadcast#guaranteeOpusEngine (fixes #1556) (#1563)

This commit is contained in:
aemino
2017-06-04 21:52:31 -07:00
committed by Crawl
parent 2116fba4c2
commit 1ed6bbc4b4

View File

@@ -242,8 +242,6 @@ class VoiceBroadcast extends VolumeInterface {
* @returns {VoiceBroadcast}
*/
playArbitraryInput(input, { seek = 0, volume = 1, passes = 1 } = {}) {
this.guaranteeOpusEngine();
const options = { seek, volume, passes, input };
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() {
if (this.tickInterval) clearInterval(this.tickInterval);
// Old code?