improved UI/UX for giving items

This commit is contained in:
SowinskiBraeden committed 2022-08-25 16:23:59 -07:00
1 parent a9d4b2ecdf
commit 9bcfad7963
3 files changed
+107 -68

No files matched your search

+10 -10
View File
@@ -190,11 +190,11 @@ module.exports = {
if (args[0].name == 'deposit') {
if (banking.guilds[GuildDB.serverID].account.cash.toFixed(2) - args[0].options[0].value < 0) {
const nsf = new EmbedBuilder()
.setDescription('**Bank Notice:** NSF. Non sufficient funds')
.setColor(client.config.Colors.Red);
const nsf = new EmbedBuilder()
.setDescription('**Bank Notice:** NSF. Non sufficient funds')
.setColor(client.config.Colors.Red);
return interaction.send({ embeds: [nsf] });
return interaction.send({ embeds: [nsf] });
}
newBalance = banking.guilds[GuildDB.serverID].account.balance + args[0].options[0].value;
@@ -223,9 +223,9 @@ module.exports = {
});
const successEmbed = new EmbedBuilder()
.setTitle('Bank Notice:')
.setDescription(`Successfully deposited **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` to view your balance`)
.setColor('GREEN');
.setTitle('Bank Notice:')
.setDescription(`Successfully deposited **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` to view your balance`)
.setColor('GREEN');
return interaction.send({ embeds: [successEmbed] });
@@ -264,9 +264,9 @@ module.exports = {
});
const successEmbed = new EmbedBuilder()
.setTitle('Bank Notice:')
.setDescription(`Successfully withdrew **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` or \`/inventory wallet\` to view your cash balance`)
.setColor('GREEN');
.setTitle('Bank Notice:')
.setDescription(`Successfully withdrew **$${args[0].options[0].value.toFixed(2)}**\nUse \`/bank balance\` or \`/inventory wallet\` to view your cash balance`)
.setColor('GREEN');
return interaction.send({ embeds: [successEmbed] });