Socket
Socket
Sign inDemoInstall

discord.js

Package Overview
Dependencies
12
Maintainers
3
Versions
1651
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 14.16.0-dev.1717805447-757bed0b1 to 14.16.0-dev.1717891907-68031210f

4

package.json
{
"$schema": "https://json.schemastore.org/package.json",
"name": "discord.js",
"version": "14.16.0-dev.1717805447-757bed0b1",
"version": "14.16.0-dev.1717891907-68031210f",
"description": "A powerful library for interacting with the Discord API",

@@ -63,4 +63,4 @@ "main": "./src/index.js",

"@discordjs/builders": "^1.8.2",
"@discordjs/formatters": "^0.4.0",
"@discordjs/rest": "^2.3.0",
"@discordjs/formatters": "^0.4.0",
"@discordjs/ws": "^1.1.1",

@@ -67,0 +67,0 @@ "@discordjs/util": "^1.1.0"

@@ -420,2 +420,26 @@ 'use strict';

}
/**
* A call associated with a message
* @typedef {Object} MessageCall
* @property {Readonly<?Date>} endedAt The time the call ended
* @property {?number} endedTimestamp The timestamp the call ended
* @property {Snowflake[]} participants The ids of the users that participated in the call
*/
if (data.call) {
/**
* The call associated with the message
* @type {?MessageCall}
*/
this.call = {
endedTimestamp: data.call.ended_timestamp ? Date.parse(data.call.ended_timestamp) : null,
participants: data.call.participants,
get endedAt() {
return this.endedTimestamp && new Date(this.endedTimestamp);
},
};
} else {
this.call ??= null;
}
}

@@ -422,0 +446,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc