mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(MessageEmbed): add missing proxyURL property to video (#3109)
* Added missing property to MessageEmbed.video * Updated typings for MessageEmbed.video
This commit is contained in:
@@ -100,11 +100,17 @@ class MessageEmbed {
|
||||
* The video of this embed (if there is one)
|
||||
* @type {?Object}
|
||||
* @property {string} url URL of this video
|
||||
* @property {string} proxyURL ProxyURL for this video
|
||||
* @property {number} height Height of this video
|
||||
* @property {number} width Width of this video
|
||||
* @readonly
|
||||
*/
|
||||
this.video = data.video;
|
||||
this.video = data.video ? {
|
||||
url: data.video.url,
|
||||
proxyURL: data.video.proxy_url,
|
||||
height: data.video.height,
|
||||
width: data.video.width,
|
||||
} : null;
|
||||
|
||||
/**
|
||||
* The author of this embed (if there is one)
|
||||
|
||||
Reference in New Issue
Block a user