discord.js
Advanced tools
Comparing version 11.4.0 to 11.4.1
{ | ||
"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, |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
598632
155
17064
+ Addedprism-media@0.0.3(transitive)
- Removedprism-media@0.0.2(transitive)
Updatedprism-media@^0.0.3