Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord.js

Package Overview
Dependencies
Maintainers
1
Versions
1737
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord.js - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

5

lib/channel.js

@@ -74,2 +74,7 @@ "use strict";

}
}, {
key: "isPrivate",
get: function get() {
return false;
}
}]);

@@ -76,0 +81,0 @@

4

lib/Client.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc