mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-01-19 17:03:47 +05:00
fix(embed): fixed color error and inability to add to messages embed
This commit is contained in:
parent
b0d882f39a
commit
e1e8963306
1 changed files with 2 additions and 3 deletions
|
@ -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"));
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue