utility.decoration: fix double embed for decor only

This commit is contained in:
Cynthia Foxwell 2023-11-20 12:08:48 -07:00
parent 5fdcb094c6
commit 9ba485083e

View file

@ -744,7 +744,9 @@ decoration.callback = async function (msg, line, [user]) {
decorEmbed.image = {url: decor}; decorEmbed.image = {url: decor};
return { return {
embeds: [baseEmbed, decor && decorEmbed].filter((x) => x != null), embeds: [normalUrl && baseEmbed, decor && decorEmbed].filter(
(x) => x != null
),
}; };
}; };
hf.registerCommand(decoration); hf.registerCommand(decoration);