Fixed the guild tag from now showing

This commit is contained in:
2023-05-16 19:14:24 +02:00
parent ee67e7b658
commit 80b33f2b34
2 changed files with 30 additions and 12 deletions

View File

@@ -31,12 +31,18 @@ module.exports = {
try {
await fetch(slothPixel + uuid);
} catch (error) {
interaction.editReply('That player doesn\'t exist. [Hypixel]')
interaction.editReply({
embeds: [{
description: "That player hasn't played Hypixel before.",
color: embedColor
}]
})
return
}
const stats = await fetch(slothPixel + uuid);
const head = minotar + ign;
const guildCheck = await fetch(guildAPI + uuid);
const rank_formatted = stats.data.rank_formatted
const rank2 = rank_formatted.replace(/&[0-9a-fk-or]/g, "")
@@ -48,7 +54,6 @@ module.exports = {
}
try {
const guildCheck = await fetch(guildAPI + uuid);
var guildName = guildCheck.data.name
} catch (error) {
var guildName = "None"
@@ -79,7 +84,6 @@ module.exports = {
}
try {
const guildCheck = await fetch(guildAPI + userUUID);
const tag_formatted = guildCheck.data.tag_formatted
const guildTag2 = tag_formatted.replace(/&[0-9a-fk-or]/g, "")
var guildTag = " " + guildTag2