fix gamertag alarm add

This commit is contained in:
SowinskiBraeden committed 2023-04-15 12:42:45 -07:00
1 parent 64863784eb
commit 70ae9fb89d
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ module.exports = {
if (args[0].name == 'set') {
let playerStat = GuildDB.playerstats.find(stat => stat.player == args[0].options[0].value);
let playerStat = GuildDB.playerstats.find(stat => stat.gamertag == args[0].options[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 `.')] });
let playerStatIndex = GuildDB.playerstats.indexOf(playerStat);