mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 12:20:23 +00:00
fix: richEmbed#_apiTransform fields
This commit is contained in:
parent
bef07152c8
commit
7126cade45
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue