diff --git a/commands/bounty.js b/commands/bounty.js index 93d39e1..aeef3a9 100644 --- a/commands/bounty.js +++ b/commands/bounty.js @@ -127,7 +127,7 @@ module.exports = { const successEmbed = new EmbedBuilder() .setTitle('Success') - .setDescription(`Successfully set a **$${args[0].options[1].value.toFixed(2)}** bounty on \` ${playerStat.gamertag} \`\nThis can be viewed using `) + .setDescription(`Successfully set a **$${args[0].options[1].value.toFixed(2).toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2})}** bounty on \` ${playerStat.gamertag} \`\nThis can be viewed using `) .setColor(client.config.Colors.Green); if (anonymous && anonymous.value) return interaction.send({ embeds: [successEmbed], flags: (1 << 6) }); @@ -193,7 +193,7 @@ module.exports = { for (let i = 0; i < activeBounties.length; i++) { for (let j = 0; j < activeBounties[i].bounties.length; j++) { - bountiesEmbed.addFields({ name: `${activeBounties[i].gamertag} has a:`, value: `**$${activeBounties[i].bounties[j].value.toFixed(2)}** bounty set by ${activeBounties[i].bounties[j].setBy == null ? 'Anonymous' : `<@${activeBounties[i].bounties[j].setBy}>`}`, inline: false }); + bountiesEmbed.addFields({ name: `${activeBounties[i].gamertag} has a:`, value: `**$${activeBounties[i].bounties[j].value.toFixed(2).toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2})}** bounty set by ${activeBounties[i].bounties[j].setBy == null ? 'Anonymous' : `<@${activeBounties[i].bounties[j].setBy}>`}`, inline: false }); } } diff --git a/commands/collect-income.js b/commands/collect-income.js index a337e00..41389af 100644 --- a/commands/collect-income.js +++ b/commands/collect-income.js @@ -95,7 +95,7 @@ module.exports = { let description = `**You collected**`; for (let i = 0; i < roles.length; i++) { - description += `\n<@&${roles[i]}> - $**${income[i].toFixed(2)}**` + description += `\n<@&${roles[i]}> - $**${income[i].toFixed(2).toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2})}**` } const success = new EmbedBuilder() diff --git a/package.json b/package.json index 10cd5ba..65e14a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "9.5.1", + "version": "9.5.2", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": { diff --git a/util/KillfeedHandler.js b/util/KillfeedHandler.js index d3b209b..20e6eaa 100644 --- a/util/KillfeedHandler.js +++ b/util/KillfeedHandler.js @@ -155,7 +155,7 @@ module.exports = { receivedBounty = new EmbedBuilder() .setColor(client.config.Colors.Default) - .setDescription(`<@${killerStat.discordID}> received **$${totalBounty.toFixed(2)}** in bounty rewards.`); + .setDescription(`<@${killerStat.discordID}> received **$${totalBounty.toFixed(2).toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2})}** in bounty rewards.`); victimStat.bounties = []; // clear bounties after claimed }