From e1e8963306a39d40ae86f4de24d3240872d225de Mon Sep 17 00:00:00 2001 From: Slincnik Date: Sat, 11 Jan 2025 13:54:21 +0300 Subject: [PATCH] fix(embed): fixed color error and inability to add to messages embed --- src/utils/create-embed.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/create-embed.js b/src/utils/create-embed.js index 27199569..c2b94d03 100644 --- a/src/utils/create-embed.js +++ b/src/utils/create-embed.js @@ -7,9 +7,8 @@ import useClient from "../utils/use-client.js"; */ export const createEmbed = data => { const client = useClient(); - new EmbedBuilder({ + return new EmbedBuilder({ footer: typeof data.footer === "object" ? data.footer : data.footer ? { text: data.footer } : client.configService.get("embed.footer"), - color: data.color ?? client.configService.get("embed.color"), ...data, - }); + }).setColor(data.color ?? client.configService.get("embed.color")); };