From c19095e0e102a09528a0bd2e94de7ab7253c9aa4 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 4 May 2022 11:49:16 +0700 Subject: [PATCH] fix #86 --- src/structures/MessagePayload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/MessagePayload.js b/src/structures/MessagePayload.js index 387f4a7..9deae40 100644 --- a/src/structures/MessagePayload.js +++ b/src/structures/MessagePayload.js @@ -195,7 +195,7 @@ class MessagePayload { } const webembeds = this.options.embeds.filter(e => e instanceof WebEmbed); - this.options.embeds = this.options.embeds.filter(e => e instanceof MessageEmbed); + this.options.embeds = this.options.embeds.filter(e => !(e instanceof WebEmbed)); if (webembeds.length > 0) { if (!content) content = '';