From ffec6279d853b0b190c45917f246497a3ff2c8df Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Tue, 28 Mar 2023 20:05:01 -0700 Subject: [PATCH] fix gamertag link --- commands/gamertag-link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/gamertag-link.js b/commands/gamertag-link.js index 49fc3a5..dd53e58 100644 --- a/commands/gamertag-link.js +++ b/commands/gamertag-link.js @@ -38,7 +38,7 @@ module.exports = { }); } - let playerStat = GuildDB.playerstats.find(stat => stat.player == args[0].value ); + let playerStat = GuildDB.playerstats.find(stat => stat.gamertag == args[0].value ); if (playerStat == undefined) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription('**Not Found** This player cannot be found, the gamertag may be incorrect or this player has not logged onto the server before for at least ` 5 minutes `.')] }); playerStat.discordID = interaction.member.user.id;