From 9ba485083e80559749cb688a5a3b6ff70dd7b457 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 20 Nov 2023 12:08:48 -0700 Subject: [PATCH] utility.decoration: fix double embed for decor only --- src/modules/utility.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/utility.js b/src/modules/utility.js index f332e26..bd629cb 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -744,7 +744,9 @@ decoration.callback = async function (msg, line, [user]) { decorEmbed.image = {url: decor}; return { - embeds: [baseEmbed, decor && decorEmbed].filter((x) => x != null), + embeds: [normalUrl && baseEmbed, decor && decorEmbed].filter( + (x) => x != null + ), }; }; hf.registerCommand(decoration);