mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
really really really messy implementation of prism
This commit is contained in:
@@ -5,6 +5,7 @@ const AudioPlayer = require('./player/AudioPlayer');
|
||||
const VoiceReceiver = require('./receiver/VoiceReceiver');
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
const fs = require('fs');
|
||||
const Prism = require('prism-media');
|
||||
|
||||
/**
|
||||
* Represents a connection to a voice channel in Discord.
|
||||
@@ -26,6 +27,11 @@ class VoiceConnection extends EventEmitter {
|
||||
*/
|
||||
this.voiceManager = pendingConnection.voiceManager;
|
||||
|
||||
/**
|
||||
* The audio transcoder for this connection
|
||||
*/
|
||||
this.prism = new Prism();
|
||||
|
||||
/**
|
||||
* The voice channel this connection is currently serving
|
||||
* @type {VoiceChannel}
|
||||
|
||||
Reference in New Issue
Block a user