From c978a67a20f356fa7559502ad5d53d2391011d16 Mon Sep 17 00:00:00 2001 From: Taken Date: Mon, 27 Nov 2023 19:29:14 +0100 Subject: [PATCH] Small change to verify command --- src/commands/verify.js | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/commands/verify.js b/src/commands/verify.js index 491e40e..937270c 100644 --- a/src/commands/verify.js +++ b/src/commands/verify.js @@ -75,7 +75,8 @@ module.exports = { username = user1.username + "#" + user1.discriminator } - if (!player.socialMedia) { + const linkedDiscord = player?.socialMedia?.links?.DISCORD || null + if (!linkedDiscord) { interaction.editReply({ embeds: [ { @@ -88,21 +89,6 @@ module.exports = { return } - if (!player.socialMedia.links.DISCORD) { - interaction.editReply({ - embeds: [ - { - description: " There is no Discord account linked to `" + player.displayname + "`.\n\n" + - "**Please set your Discord tag on hypixel to `" + username + "` and try again.**", - color: embedColor - } - ] - }) - return - } - - const linkedDiscord = player.socialMedia.links.DISCORD - if (linkedDiscord !== username) { interaction.editReply({ embeds: [