Fixed eco user embed not sending.

This commit is contained in:
Keanu Timmermans 2021-10-31 17:59:29 +01:00
parent ea58f3d52e
commit 64dde60dab
Signed by: keanucode
GPG Key ID: A7431C0D513CA93B
1 changed files with 19 additions and 16 deletions

View File

@ -6,9 +6,11 @@ export const ECO_EMBED_COLOR = 0xf1c40f;
export function getMoneyEmbed(user: User): object { export function getMoneyEmbed(user: User): object {
const profile = Storage.getUser(user.id); const profile = Storage.getUser(user.id);
console.log(profile);
return { return {
embed: { embeds: [
{
color: ECO_EMBED_COLOR, color: ECO_EMBED_COLOR,
author: { author: {
name: user.username, name: user.username,
@ -24,6 +26,7 @@ export function getMoneyEmbed(user: User): object {
} }
] ]
} }
]
}; };
} }