From c2e2eb5913f6ae1e3bd2bd86cd157b979aaf9013 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Tue, 28 Mar 2023 20:03:37 -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 f0ae265..49fc3a5 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[0] ); + let playerStat = GuildDB.playerstats.find(stat => stat.player == 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;