Minor changes

This commit is contained in:
Amish Shah
2015-12-17 18:31:52 +00:00
parent b82c318e96
commit 941fd2fe98
3 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ if((major == 0 && minor < 12) || (major == 0 && minor == 12 && patch < 7)) {
if(!process.env.OVERRIDE_DISCORD_MIN_VERSION) { if(!process.env.OVERRIDE_DISCORD_MIN_VERSION) {
throw new Error( throw new Error(
"discord.js doesn't support node versions less than 0.12.7.\n"+ "discord.js doesn't support node versions less than 0.12.7.\n"+
"If you /really/ want to run it on this node " + process.version + ", then set OVERRIDE_DISCORD_MIN_VERSION an an environment variable.\n"+ "If you /really/ want to run it on this node " + process.version + ", then set OVERRIDE_DISCORD_MIN_VERSION as an environment variable.\n"+
"This is unsupported and WILL cause problems." "This is unsupported and WILL cause problems."
) )
} }

View File

@@ -291,7 +291,7 @@ var VoiceConnection = (function (_EventEmitter) {
var self = this; var self = this;
_dns2["default"].lookup(this.endpoint, function (err, address, family) { _dns2["default"].lookup(this.endpoint, function (err, address, family) {
self.endpoint = address; _this3.endpoint = address;
var vWS = self.vWS = new _ws2["default"]("wss://" + _this3.endpoint, null, { rejectUnauthorized: false }); var vWS = self.vWS = new _ws2["default"]("wss://" + _this3.endpoint, null, { rejectUnauthorized: false });
var udpClient = self.udp = _dgram2["default"].createSocket("udp4"); var udpClient = self.udp = _dgram2["default"].createSocket("udp4");

View File

@@ -257,7 +257,7 @@ export default class VoiceConnection extends EventEmitter {
init() { init() {
var self = this; var self = this;
dns.lookup(this.endpoint, (err, address, family) => { dns.lookup(this.endpoint, (err, address, family) => {
self.endpoint = address; this.endpoint = address;
var vWS = self.vWS = new WebSocket("wss://" + this.endpoint, null, { rejectUnauthorized: false }); var vWS = self.vWS = new WebSocket("wss://" + this.endpoint, null, { rejectUnauthorized: false });
var udpClient = self.udp = udp.createSocket("udp4"); var udpClient = self.udp = udp.createSocket("udp4");