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;