mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
Make voice return streamdispatcher
This commit is contained in:
@@ -62,7 +62,7 @@ class AudioPlayer extends EventEmitter {
|
|||||||
if (this.listenerCount('error') > 0) this.emit('error', e);
|
if (this.listenerCount('error') > 0) this.emit('error', e);
|
||||||
else this.emit('warn', 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 } = {}) {
|
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.login(token).then(atoken => console.log('logged in with token ' + atoken)).catch(console.error);
|
||||||
|
|
||||||
client.ws.on('send', console.log);
|
|
||||||
|
|
||||||
client.on('ready', () => {
|
client.on('ready', () => {
|
||||||
console.log('ready');
|
console.log('ready');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user