diff --git a/commands/forceverify.js b/commands/forceverify.js index 05d5199..474e753 100644 --- a/commands/forceverify.js +++ b/commands/forceverify.js @@ -67,16 +67,16 @@ module.exports = { return } - try { - await fetch(slothPixel + ign); + const userCheck = await fetch(mojang + ign); + const userUUID = userCheck.data.id; + + try { + await fetch(slothPixel + userUUID); } catch (err) { interaction.editReply('That player doesn\'t exist. [Hypixel]') return } - const userCheck = await fetch(mojang + ign); - const userUUID = userCheck.data.id; - const hypixelCheck = await fetch(slothPixel + userUUID); const head = minotar + ign; diff --git a/commands/verify.js b/commands/verify.js index 50a84b7..38e8395 100644 --- a/commands/verify.js +++ b/commands/verify.js @@ -56,16 +56,16 @@ module.exports = { return } + const userCheck = await fetch(mojang + ign); + const userUUID = userCheck.data.id; + try { - await fetch(slothPixel + ign); + await fetch(slothPixel + userUUID); } catch (err) { interaction.editReply('That player doesn\'t exist. [Hypixel]') return } - const userCheck = await fetch(mojang + ign); - const userUUID = userCheck.data.id; - const hypixelCheck = await fetch(slothPixel + userUUID); const head = minotar + ign;