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")); };