Fix ESLint and inline the voice readable stream

This commit is contained in:
Amish Shah
2018-01-19 22:41:31 +00:00
parent dd618584d0
commit 83140f11b7
3 changed files with 6 additions and 12 deletions

View File

@@ -13,7 +13,6 @@ class VoiceReceiver extends EventEmitter {
createStream(user, { mode = 'opus' } = {}) {
user = this.connection.client.users.resolve(user);
if (!user) throw new Error('VOICE_USER_MISSING');
console.log('making stream for', user.tag);
const stream = this.packets.makeStream(user.id);
if (mode === 'pcm') {
const decoder = new prism.opus.Decoder({ channels: 2, rate: 48000, frameSize: 1920 });
@@ -24,7 +23,7 @@ class VoiceReceiver extends EventEmitter {
}
stoppedSpeaking() {
console.log('remember to remove this :)');
return false;
}
}