fix withdraw/deposit commands
This commit is contained in:
4 files changed
+200
-5
No files matched your search
+4
-4
@@ -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] });
|
||||
|
||||
Reference in new issue
Block a user