mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 09:42:22 +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
|
* 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue