auto clean whitespace
This commit is contained in:
38 files changed
+1446
-1446
No files matched your search
+6
-6
@@ -58,19 +58,19 @@ module.exports = {
|
||||
|
||||
let playerStat = await client.dbo.collection("players").findOne({"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[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 \`.`)] });
|
||||
|
||||
|
||||
if (client.exists(playerStat.discordID)) {
|
||||
const found = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Yellow)
|
||||
.setDescription(`**Record Found**\n> The gamertag \` ${playerStat.gamertag} \` is currently linked to <@${playerStat.discordID}>.`)
|
||||
|
||||
|
||||
return interaction.send({ embeds: [found] });
|
||||
}
|
||||
|
||||
|
||||
let notFound = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setDescription(`**Record Not Found**\n The gamertag \` ${playerStat.gamertag} \` currently has no linked Discord account.`);
|
||||
|
||||
|
||||
return interaction.send({ embeds: [notFound] })
|
||||
|
||||
} else if (args[0].name == 'gamertag') {
|
||||
@@ -81,10 +81,10 @@ module.exports = {
|
||||
const found = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Yellow)
|
||||
.setDescription(`**Record Found**\n> The user <@${playerStat.discordID}> has linked the gamertag \` ${playerStat.gamertag} \`.`)
|
||||
|
||||
|
||||
return interaction.send({ embeds: [found] });
|
||||
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user