From 941fd2fe98ea739bef347f6baa8c6ca816ce212e Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Thu, 17 Dec 2015 18:31:52 +0000 Subject: [PATCH] Minor changes --- entrypoint.js | 2 +- lib/Voice/VoiceConnection.js | 2 +- src/Voice/VoiceConnection.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.js b/entrypoint.js index d0ea4215f..ca0d490ae 100644 --- a/entrypoint.js +++ b/entrypoint.js @@ -21,7 +21,7 @@ if((major == 0 && minor < 12) || (major == 0 && minor == 12 && patch < 7)) { if(!process.env.OVERRIDE_DISCORD_MIN_VERSION) { throw new Error( "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." ) } diff --git a/lib/Voice/VoiceConnection.js b/lib/Voice/VoiceConnection.js index 7d8ac7faa..3d95028b7 100644 --- a/lib/Voice/VoiceConnection.js +++ b/lib/Voice/VoiceConnection.js @@ -291,7 +291,7 @@ var VoiceConnection = (function (_EventEmitter) { var self = this; _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 udpClient = self.udp = _dgram2["default"].createSocket("udp4"); diff --git a/src/Voice/VoiceConnection.js b/src/Voice/VoiceConnection.js index 2b3286f19..556fff9fc 100644 --- a/src/Voice/VoiceConnection.js +++ b/src/Voice/VoiceConnection.js @@ -257,7 +257,7 @@ export default class VoiceConnection extends EventEmitter { init() { var self = this; 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 udpClient = self.udp = udp.createSocket("udp4");