From 420ab666b18fae56ab94c0e105b9e38e4980d247 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Fri, 30 Jun 2023 11:15:59 -0700 Subject: [PATCH] debug location command --- commands/location.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/location.js b/commands/location.js index 180cddc..fb5a6e2 100644 --- a/commands/location.js +++ b/commands/location.js @@ -32,8 +32,8 @@ module.exports = { }); } - let playerStat = GuildDB.playerstats.find(stat => stat.discordID == interaction.member.userID ); - if (playerStat == undefined) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription(`**Not Found** You haven't linked your gamertag and are unable to use this command.`)] }); + let playerStat = GuildDB.playerstats.find(stat => stat.discordID == interaction.member.user.id ); + if (playerStat == undefined) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription(`**Not Found** You haven't linked your gamertag and are unable to use this command.`)], flags: (1 << 6) }); let newDt = await client.getDateEST(playerStat.time); let unixTime = Math.floor(newDt.getTime()/1000); diff --git a/package.json b/package.json index 81af20e..2334858 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "8.2.0", + "version": "8.2.1", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {