mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
minor bug fix
This commit is contained in:
@@ -41,4 +41,5 @@ myBot.login("discord email", "discord password", function(e) {
|
|||||||
```
|
```
|
||||||
### TODO
|
### TODO
|
||||||
* Documentation
|
* Documentation
|
||||||
|
* Better error handling
|
||||||
* Being able to cache new servers and channels as well as ones that are deleted - this is currently only done when a bot is created
|
* Being able to cache new servers and channels as well as ones that are deleted - this is currently only done when a bot is created
|
||||||
|
|||||||
3
index.js
3
index.js
@@ -161,6 +161,9 @@ exports.Client.prototype.connectWebsocket = function(cb) {
|
|||||||
}
|
}
|
||||||
this.websocket.keepAlive = function() {
|
this.websocket.keepAlive = function() {
|
||||||
|
|
||||||
|
if(this.readyState !== 1)
|
||||||
|
return false;
|
||||||
|
|
||||||
this.sendPacket({
|
this.sendPacket({
|
||||||
op: 1,
|
op: 1,
|
||||||
d: Date.now()
|
d: Date.now()
|
||||||
|
|||||||
Reference in New Issue
Block a user