mirror of
https://github.com/danbulant/discord.js
synced 2026-06-15 12:41:24 +00:00
Added SSL cert fix
This commit is contained in:
parent
8d69e769f6
commit
1b67678d44
2 changed files with 2 additions and 2 deletions
|
|
@ -154,7 +154,7 @@ var Client = (function () {
|
|||
self.token = res.body.token; //set our token
|
||||
|
||||
self.getGateway().then(function (url) {
|
||||
self.createws(url);
|
||||
self.createws(url.replace("discord.gg", "discordapp.net"));
|
||||
callback(null, self.token);
|
||||
resolve(self.token);
|
||||
})["catch"](function (err) {
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ class Client {
|
|||
self.token = res.body.token; //set our token
|
||||
|
||||
self.getGateway().then(function (url) {
|
||||
self.createws(url);
|
||||
self.createws(url.replace("discord.gg", "discordapp.net"));
|
||||
callback(null, self.token);
|
||||
resolve(self.token);
|
||||
}).catch(function (err) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue