mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
Added opus as an optional
This commit is contained in:
@@ -7,9 +7,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
||||
var WebSocket = require("ws");
|
||||
var dns = require("dns");
|
||||
var udp = require("dgram");
|
||||
var Lame = require("lame");
|
||||
var Opus = require('node-opus');
|
||||
var Wav = require('wav');
|
||||
var fs = require("fs");
|
||||
var ffmpeg = require('fluent-ffmpeg');
|
||||
var AudioEncoder = require("./AudioEncoder.js");
|
||||
@@ -24,6 +22,9 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||
_classCallCheck(this, VoiceConnection);
|
||||
|
||||
_EventEmitter.call(this);
|
||||
if (!Opus) {
|
||||
console.log("HEY! WATCH OUT\n\n discord.js needs node-opus, you don't have it installed.");
|
||||
}
|
||||
this.voiceChannel = channel;
|
||||
this.client = client;
|
||||
this.session = session;
|
||||
|
||||
Reference in New Issue
Block a user