Skip to content

Commit

Permalink
Fix cash balance in balance...
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMonDon committed Jul 24, 2024
1 parent 781b3ce commit 25b298d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/Economy/balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Balance extends Command {

if (!mem) return this.client.util.errorEmbed(msg, msg.settings.prefix + this.help.usage, 'Invalid Member');

const cashValue = await db.get(`servers.${msg.guild.id}.users.${msg.member.id}.economy.cash`);
const cashValue = await db.get(`servers.${msg.guild.id}.users.${mem.id}.economy.cash`);
const startBalance = BigInt((await db.get(`servers.${msg.guild.id}.economy.startBalance`)) || 0);

const cash = cashValue === undefined ? startBalance : BigInt(cashValue);
Expand Down

0 comments on commit 25b298d

Please sign in to comment.