fix withdraw/deposit commands

This commit is contained in:
SowinskiBraeden committed 2022-07-06 00:13:43 -07:00
1 parent fe9bc52dec
commit 8a5986a620
4 files changed
+200 -5

No files matched your search

+4 -4
View File
@@ -43,7 +43,7 @@ module.exports = {
targetUserBanking = {
account: {
userID: interaction.member.user.id,
ballance: GuildDB.startingBalance,
balance: GuildDB.startingBalance,
cash: 0.00,
}
}
@@ -64,7 +64,7 @@ module.exports = {
const User = client.users.cache.get(targetUserID);
balanceEmbed.setTitle(`${User.tag}'s Balance`);
balanceEmbed.setDescription(`**Bank:** $${targetUserBanking.account.ballance}\n**Cash:** $${targetUserBanking.account.cash}`);
balanceEmbed.setDescription(`**Bank:** $${targetUserBanking.account.balance}\n**Cash:** $${targetUserBanking.account.cash}`);
} else {
// Show command authors balance
@@ -75,7 +75,7 @@ module.exports = {
banking = {
account: {
userID: interaction.member.user.id,
ballance: GuildDB.startingBalance,
balance: GuildDB.startingBalance,
cash: 0.00,
}
}
@@ -93,7 +93,7 @@ module.exports = {
}
balanceEmbed.setTitle('Your Balance');
balanceEmbed.setDescription(`**Bank:** $${banking.account.ballance}\n**Cash:** $${banking.account.cash}`);
balanceEmbed.setDescription(`**Bank:** $${banking.account.balance.toFixed(2)}\n**Cash:** $${banking.account.cash.toFixed(2)}`);
}
return interaction.send({ embeds: [balanceEmbed] });