mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
fix: richEmbed#_apiTransform fields
This commit is contained in:
@@ -248,7 +248,9 @@ class RichEmbed {
|
|||||||
url: this.url,
|
url: this.url,
|
||||||
timestamp: this.timestamp ? new Date(this.timestamp) : null,
|
timestamp: this.timestamp ? new Date(this.timestamp) : null,
|
||||||
color: this.color,
|
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 ? {
|
thumbnail: this.thumbnail ? {
|
||||||
url: this.thumbnail.url,
|
url: this.thumbnail.url,
|
||||||
} : null,
|
} : null,
|
||||||
|
|||||||
Reference in New Issue
Block a user