prevent repeat logs?

This commit is contained in:
SowinskiBraeden committed 2023-07-02 10:36:12 -07:00
1 parent d1c205da58
commit 14c3c7b99f
4 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ module.exports = {
if (args[0].name == 'player-track') {
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 gamertag \` ${args[1].value} \` cannot be found, the gamertag may be incorrect or this player has not logged onto the server before for at least \` 5 minutes \`.`)] });
if (playerStat == undefined) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription(`**Not Found** This gamertag \` ${args[0].options[0].value} \` cannot be found, the gamertag may be incorrect or this player has not logged onto the server before for at least \` 5 minutes \`.`)] });
let event = {
type: args[0].name,