New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord.js

Package Overview
Dependencies
Maintainers
2
Versions
1788
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 11.4.0 to 11.4.1

4

package.json
{
"name": "discord.js",
"version": "11.4.0",
"version": "11.4.1",
"description": "A powerful library for interacting with the Discord API",

@@ -36,3 +36,3 @@ "main": "./src/index",

"long": "^4.0.0",
"prism-media": "^0.0.2",
"prism-media": "^0.0.3",
"snekfetch": "^3.6.4",

@@ -39,0 +39,0 @@ "tweetnacl": "^1.0.0",

@@ -58,3 +58,5 @@ const Constants = require('../util/Constants');

guild = guild || this.client.guilds.get(data.guild_id);
if (guild) {
if (already) {
channel = this.client.channels.get(data.id);
} else if (guild) {
if (data.type === Constants.ChannelTypes.TEXT) {

@@ -61,0 +63,0 @@ channel = new TextChannel(guild, data);

@@ -92,6 +92,6 @@ const RequestHandler = require('./RequestHandler');

* @param {Object} rateLimitInfo Object containing the rate limit info
* @prop {number} rateLimitInfo.requestLimit Number of requests that can be made to this endpoint
* @prop {number} rateLimitInfo.timeDifference Delta-T in ms between your system and Discord servers
* @param {number} rateLimitInfo.requestLimit Number of requests that can be made to this endpoint
* @param {number} rateLimitInfo.timeDifference Delta-T in ms between your system and Discord servers
* @param {string} rateLimitInfo.method HTTP method used for request that triggered this event
* @prop {string} rateLimitInfo.path Path used for request that triggered this event
* @param {string} rateLimitInfo.path Path used for request that triggered this event
*/

@@ -98,0 +98,0 @@ this.client.emit(RATE_LIMIT, {

@@ -251,3 +251,5 @@ const Attachment = require('./Attachment');

color: this.color,
fields: this.fields ? this.fields.map(field => ({ name: field.name, value: field.value })) : null,
fields: this.fields ?
this.fields.map(field => ({ name: field.name, value: field.value, inline: field.inline })) :
null,
thumbnail: this.thumbnail ? {

@@ -254,0 +256,0 @@ url: this.thumbnail.url,

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