mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
refactor(MessageEmbed): simplify initialization of files property (#3814)
This commit is contained in:
parent
161f90761a
commit
b347e9ec26
1 changed files with 1 additions and 4 deletions
|
|
@ -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 || [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue