mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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
|
||||
* @type {Array<FileOptions|string|MessageAttachment>}
|
||||
*/
|
||||
this.files = [];
|
||||
if (data.files) {
|
||||
this.files = data.files;
|
||||
}
|
||||
this.files = data.files || [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user