fix gamertag alarm add
This commit is contained in:
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user