mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
refactor(MessageEmbed): simplify initialization of files property (#3814)
This commit is contained in:
@@ -152,10 +152,7 @@ class MessageEmbed {
|
|||||||
* The files of this embed
|
* The files of this embed
|
||||||
* @type {Array<FileOptions|string|MessageAttachment>}
|
* @type {Array<FileOptions|string|MessageAttachment>}
|
||||||
*/
|
*/
|
||||||
this.files = [];
|
this.files = data.files || [];
|
||||||
if (data.files) {
|
|
||||||
this.files = data.files;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user