fix/bounty pay user search
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -117,7 +117,7 @@ module.exports = {
|
|||||||
|
|
||||||
} else if (args[0].name == 'pay') {
|
} 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 (!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) {
|
if (playerStat.bounties.length == 0) {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayzr-bot",
|
"name": "dayzr-bot",
|
||||||
"version": "12.3.11",
|
"version": "12.3.12",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user