mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +00:00
minor bug fix
This commit is contained in:
parent
07db06f1c1
commit
8de8b6d20e
2 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue