mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 23:21:04 +00:00
Make voice return streamdispatcher
This commit is contained in:
parent
4294d267e7
commit
00254f35b0
2 changed files with 1 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ class AudioPlayer extends EventEmitter {
|
|||
if (this.listenerCount('error') > 0) this.emit('error', e);
|
||||
else this.emit('warn', e);
|
||||
});
|
||||
this.playPCMStream(transcoder.output, options);
|
||||
return this.playPCMStream(transcoder.output, options);
|
||||
}
|
||||
|
||||
playPCMStream(stream, { seek = 0, volume = 1, passes = 1 } = {}) {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ const { email, password, token, usertoken, song } = require('./auth.json');
|
|||
|
||||
client.login(token).then(atoken => console.log('logged in with token ' + atoken)).catch(console.error);
|
||||
|
||||
client.ws.on('send', console.log);
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log('ready');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue