mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
feat(MessageEmbed): Support EmbedFieldData[] instead of EmbedFi… (#3845)
* fix(typings): MessageEmbedOptions#fields should be EmbedFieldData[] * feat(MessageEmbed): Allow optional EmbedFieldData#inline in constructor * docs(MessageEmbed): revert type change of fields Co-authored-by: Crawl <icrawltogo@gmail.com> Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
@@ -65,7 +65,7 @@ class MessageEmbed {
|
||||
* The fields of this embed
|
||||
* @type {EmbedField[]}
|
||||
*/
|
||||
this.fields = data.fields ? data.fields.map(Util.cloneObject) : [];
|
||||
this.fields = data.fields ? this.constructor.normalizeFields(data.fields) : [];
|
||||
|
||||
/**
|
||||
* @typedef {Object} MessageEmbedThumbnail
|
||||
|
||||
Reference in New Issue
Block a user