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": {