From eb7f454cbb317ecf2107c8c5f6ea32fb06b67f20 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Wed, 8 Nov 2023 13:50:26 -0800 Subject: [PATCH] fix/bounty pay user search --- commands/bounty.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/bounty.js b/commands/bounty.js index 0f9af49..6988cfe 100644 --- a/commands/bounty.js +++ b/commands/bounty.js @@ -117,7 +117,7 @@ module.exports = { } else if (args[0].name == 'pay') { - let playerStat = await client.dbo.collection("players").findOne({"gamertag": interaction.member.user.id}); + let playerStat = await client.dbo.collection("players").findOne({"discordID": interaction.member.user.id}); if (!client.exists(playerStat)) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription('**Not Found** Your user ID could not be found, contact an Admin.')] }); if (playerStat.bounties.length == 0) { diff --git a/package.json b/package.json index 39cc236..b6f87aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "12.3.11", + "version": "12.3.12", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": {