mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
feat(MessageEmbed): change toJSON method to return an api-compatible object (#3813)
This commit is contained in:
@@ -152,7 +152,7 @@ class APIMessage {
|
||||
} else if (this.options.embed) {
|
||||
embedLikes.push(this.options.embed);
|
||||
}
|
||||
const embeds = embedLikes.map(e => new MessageEmbed(e)._apiTransform());
|
||||
const embeds = embedLikes.map(e => new MessageEmbed(e).toJSON());
|
||||
|
||||
let username;
|
||||
let avatarURL;
|
||||
|
||||
Reference in New Issue
Block a user