fix: richEmbed#_apiTransform fields

This commit is contained in:
Lewdcario
2018-08-09 13:52:50 -05:00
parent bef07152c8
commit 7126cade45

View File

@@ -248,7 +248,9 @@ class RichEmbed {
url: this.url,
timestamp: this.timestamp ? new Date(this.timestamp) : null,
color: this.color,
fields: this.fields ? this.fields.map(field => ({ name: field.name, value: field.value })) : null,
fields: this.fields ?
this.fields.map(field => ({ name: field.name, value: field.value, inline: field.inline })) :
null,
thumbnail: this.thumbnail ? {
url: this.thumbnail.url,
} : null,