6.11.3 debug unlink features
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -78,7 +78,7 @@ module.exports = {
|
||||
return interaction.reply({ content: 'This interaction is not for you', flags: (1 << 6) });
|
||||
|
||||
if (interaction.customId.split('-')[1]=='yes') {
|
||||
let playerStat = GuildDB.playerstats.find(stat => stat.gamertag == interaction.customId.split('-')[2]);
|
||||
let playerStat = GuildDB.playerstats.find(stat => stat.discordID == interaction.customId.split('-')[2]);
|
||||
|
||||
playerStat.discordID = "";
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ module.exports = {
|
||||
});
|
||||
}
|
||||
|
||||
let playerStat = GuildDB.playerstats.find(stat => stat.discordID == interaction.user.member.id);
|
||||
let playerStat = GuildDB.playerstats.find(stat => stat.discordID == interaction.member.user.id);
|
||||
if (playerStat == undefined) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription(`**No Gamertag Linked** It Appears your don't have a gamertag linked to your account.`)] });
|
||||
|
||||
const warnGTOverwrite = new EmbedBuilder()
|
||||
|
||||
Reference in new issue
Block a user