From 34d0d31009a81950c17ccd3f47bb506e6b9af638 Mon Sep 17 00:00:00 2001 From: Adrian Castro Date: Fri, 11 Jun 2021 23:17:53 +0200 Subject: [PATCH] commit suggested changes Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com> --- src/structures/APIMessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/APIMessage.js b/src/structures/APIMessage.js index b74d0a9534ee..0602301da0e9 100644 --- a/src/structures/APIMessage.js +++ b/src/structures/APIMessage.js @@ -198,7 +198,7 @@ class APIMessage { content, tts, nonce, - embeds: this.options.embeds ? embeds : undefined, + embeds: this.options.embeds?.map(embed => new MessageEmbed(embed).toJSON()), components, username, avatar_url: avatarURL,