discord.js
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -74,2 +74,7 @@ "use strict"; | ||
} | ||
}, { | ||
key: "isPrivate", | ||
get: function get() { | ||
return false; | ||
} | ||
}]); | ||
@@ -76,0 +81,0 @@ |
@@ -142,3 +142,5 @@ //discord.js modules | ||
self.trigger("disconnected"); | ||
self.websocket.close(); | ||
if (self.websocket) { | ||
self.websocket.close(); | ||
} | ||
callback(err); | ||
@@ -145,0 +147,0 @@ reject(err); |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -7,2 +7,4 @@ "use strict"; | ||
var PMChannel = require("./PMChannel.js"); | ||
var Message = (function () { | ||
@@ -68,2 +70,7 @@ function Message(data, channel, mentions, author) { | ||
} | ||
}, { | ||
key: "isPrivate", | ||
get: function get() { | ||
return this.channel.isPrivate; | ||
} | ||
}]); | ||
@@ -70,0 +77,0 @@ |
@@ -56,2 +56,7 @@ "use strict"; | ||
} | ||
}, { | ||
key: "isPrivate", | ||
get: function get() { | ||
return true; | ||
} | ||
}]); | ||
@@ -58,0 +63,0 @@ |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "discord.js", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "A way to interface with the Discord API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -30,2 +30,9 @@ var Discord = require("../"); | ||
mybot.on("ready", function(){ | ||
console.log("im ready"); | ||
setInterval(function(){ | ||
console.log(mybot.websocket.state, "state"); | ||
}, 2000); | ||
}) | ||
function dump(msg) { | ||
@@ -32,0 +39,0 @@ console.log(msg); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6974
274917