mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Minor changes
This commit is contained in:
@@ -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."
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user