mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
17 lines
374 B
JavaScript
17 lines
374 B
JavaScript
const EventEmitter = require('events');
|
|
|
|
class VoiceReceiver extends EventEmitter {
|
|
constructor(connection) {
|
|
super();
|
|
this.connection = connection;
|
|
this.packets = new PacketHandler(this);
|
|
this.connection.sockets.udp.socket.on('message', buffer => this.packets.push(buffer));
|
|
}
|
|
|
|
createStream(user, pcm=false) {
|
|
|
|
}
|
|
}
|
|
|
|
module.exports = VoiceReceiver;
|